Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What kind of scores are returned by cross_validation.cross_val_score?

I can't find this information in sci-kit learn documentation. But based on the numbers I got, it doesn't look like scores are mean squared error.

like image 542
kokoma Avatar asked Jun 08 '16 22:06

kokoma


1 Answers

cross_val_score calls the .score() method of the estimator you pass in and what that returns varies depending on the estimator. You have to look into the documentation for each estimator to find out what the corresponding .score() method returns. You can override this default behaviour with the scoring parameter. This is documented here.

like image 97
elyase Avatar answered Oct 09 '22 15:10

elyase