Reputation: 1386
I know that sklearn.model_selection.cross_val_score
function use a make_scorer()
function which returns a callable that scores an estimator’s output.
What is the scoring function that is used in cross_val_score()
function ?
I guess it's one of the below choices:
Upvotes: 1
Views: 2637
Reputation: 19634
It depends on the scoring that you choose. See the possible list of options here:
http://scikit-learn.org/stable/modules/model_evaluation.html#scoring-parameter
Also, as written here in section 3.1.1, http://scikit-learn.org/stable/modules/cross_validation.html,
"By default, the score computed at each CV iteration is the score method of the estimator. It is possible to change this by using the scoring parameter."
Upvotes: 4