Evaluation index that can be specified in GridSearchCV of sklearn

About this article

grid = GridSearchCV(
    model,
    param_grid,
    cv=5,
    scoring="neg_log_loss", #← ★ This ★
    verbose=3,
    n_jobs=4
)

Displaying a list of available evaluation indicators

import sklearn
sorted(sklearn.metrics.SCORERS.keys())

In the environment at hand

['accuracy',
 'adjusted_mutual_info_score',
 'adjusted_rand_score',
 'average_precision',
 'balanced_accuracy',
 'brier_score_loss',
 'completeness_score',
 'explained_variance',
 'f1',
 'f1_macro',
 'f1_micro',
 'f1_samples',
 'f1_weighted',
 'fowlkes_mallows_score',
 'homogeneity_score',
 'jaccard',
 'jaccard_macro',
 'jaccard_micro',
 'jaccard_samples',
 'jaccard_weighted',
 'max_error',
 'mutual_info_score',
 'neg_log_loss',
 'neg_mean_absolute_error',
 'neg_mean_squared_error',
 'neg_mean_squared_log_error',
 'neg_median_absolute_error',
 'normalized_mutual_info_score',
 'precision',
 'precision_macro',
 'precision_micro',
 'precision_samples',
 'precision_weighted',
 'r2',
 'recall',
 'recall_macro',
 'recall_micro',
 'recall_samples',
 'recall_weighted',
 'roc_auc',
 'v_measure_score']

Recommended Posts

Evaluation index that can be specified in GridSearchCV of sklearn
Easy padding of data that can be used in natural language processing
Maximum number of function parameters that can be defined in each language
Building Sphinx that can be written in Markdown
A personal memo of Pandas related operations that can be used in practice
Basic algorithms that can be used in competition pros
ANTs image registration that can be used in 5 minutes
Excel sheet cannot be specified in sheet_name of pd.read_excel
Summary of statistical data analysis methods using Python that can be used in business
Geographic information visualization of R and Python that can be expressed in Power BI
Format summary of formats that can be serialized with gensim
Basic knowledge of DNS that can not be heard now
Processing of python3 that seems to be usable in paiza
Goroutine (parallel control) that can be used in the field
Goroutine that can be used in the field (errgroup.Group edition)
Scripts that can be used when using bottle in Python
Make a Spinbox that can be displayed in Binary with Tkinter
A timer (ticker) that can be used in the field (can be used anywhere)
Python standard input summary that can be used in competition pro
Comparison of 4 styles that can be passed to seaborn with set_context
Make a Spinbox that can be displayed in HEX with Tkinter
Create a custom field where enum can be specified in choices
Confirmation that rkhunter can be installed
[Python] A program that finds a pair that can be divided by a specified value
AtCoder C problem summary that can be solved in high school mathematics
Serverless LINE Bot that can be done in 2 hours (source identifier acquisition)
A story that heroku that can be done in 5 minutes actually took 3 days
Items that cannot be imported with sklearn
[Python] The movement of the decorator that can be understood this time ② The decorator that receives the argument
Tensorflow, it seems that even the eigenvalues of the matrix can be automatically differentiated
A class for PYTHON that can be operated without being aware of LDAP
[Python] Summary of functions that return the index that takes the closest value in the array
I want to create a priority queue that can be updated in Python (2.7)
Easy program installer and automatic program updater that can be used in any language
Summary of scikit-learn data sources that can be used when writing analysis articles
I made a familiar function that can be used in statistics with Python
It can be achieved in 1 minute! Decorator that caches function execution results in memcached
List of tools that can be used to easily try sentiment analysis of Japanese sentences in Python (try with google colab)
[Python] I examined the practice of asynchronous processing that can be executed in parallel with the main thread (multiprocessing, asyncio).