In scikit-learn 0.19.1, return_train_score=True was deprecated. The deprecation behavior is:
If not set by user, raise warning if any train score results are accessed in cv_results. They handle this with a special dictionary class to raise the warning.
If set by user to True or False, no warning is given.
We duplicate this behavior for scikit-learn >= 0.19.1
In scikit-learn 0.19.1,
return_train_score=True
was deprecated. The deprecation behavior is:cv_results
. They handle this with a special dictionary class to raise the warning.We duplicate this behavior for scikit-learn >= 0.19.1