Hello,
I know I am late in this course…
Anyway while completing the WrapUp Quiz M4 Question 10, I made an error.
cv_results = cross_validate(model, data, target,
cv=10, return_train_score=True,
return_estimator=True)
I calculated the score by :
aa=[cv_results['estimator'][i][-1].score(data,target) for i in range(10)]
print(f"mean score value = {np.mean(aa)}")
The result is completly different when using cv_results[“test_score”].mean()
This difference is not visible whan applyed on the Dummy classifier.
So my question is : what is doing estimator.score(Data,Target)?
In anycase reading directly the cv_results dict is far better solution I admit… *
Thanks a lot