机器学习-GridSearchCV scoring 参数设置!

分类情况:

‘accuracy’ metrics.accuracy_score
‘average_precision’ metrics.average_precision_score
‘f1’ metrics.f1_score
‘f1_micro’ metrics.f1_score
‘f1_macro’ metrics.f1_score
‘f1_weighted’ metrics.f1_score
‘f1_samples’ metrics.f1_score
‘neg_log_loss’ metrics.log_loss
‘precision’ etc. metrics.precision_score
‘recall’ etc. metrics.recall_score
‘roc_auc’ metrics.roc_auc_score

回归情况:

‘neg_mean_absolute_error’ metrics.mean_absolute_error
‘neg_mean_squared_error’ metrics.mean_squared_error
‘neg_median_absolute_error’ metrics.median_absolute_error
‘r2’ metrics.r2_score

你可能感兴趣的:(sklearn)