GridSearchCV.best_score_ meaning when scoring set to 'accuracy' and CV

前端 未结 1 618
-上瘾入骨i
-上瘾入骨i 2021-02-09 13:39

I\'m trying to find the best model Neural Network model applied for the classification of breast cancer samples on the well-known Wisconsin Cancer dataset (569 samples, 31 featu

相关标签:
1条回答
  • 2021-02-09 14:16

    The grid.best_score_ is the average of all cv folds for a single combination of the parameters you specify in the tuned_params.

    In order to access other relevant details about the grid searching process, you can look at the grid.cv_results_ attribute.

    From the documentation of GridSearchCV:

    cv_results_ : dict of numpy (masked) ndarrays

    A dict with keys as column headers and values as columns, 
    that can be imported into a pandas DataFrame
    

    It contains keys like 'split0_test_score', 'split1_test_score' , 'mean_test_score', 'std_test_score', 'rank_test_score', 'split0_train_score', 'split1_train_score', 'mean_train_score', etc, which gives additional information about the whole execution.

    0 讨论(0)
提交回复
热议问题