Replies: 2 comments
-
This Sckit-Learn way: Is the same as this for loop way:
After nested CV found scores around 95%-above means your GridSearchCV works well |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback. Sorry for my slow understanding.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am learning Machine Learning and exploring nested cross-validation.
I don't understand the example given in scikit-learn. The model seems to learn from the whole dataset and the evaluation is not performed on a hold-out set.
scikit documentation
scikit implementation
From what I read in Applied Predictive Modeling from Kuhn & Johnson, the model resulting from the inner loop should be evaluated on the hold-out set of the outer loop and the following post adheres to this point machinelearningmastery blog
As I am far from a Python expert, could you tell me the advantages, drawbacks and purposes of both of these implementations?
I read #21621 but I am not sure if it really answers my question. If it does, let me know and I will try to carefully understand it.
Beta Was this translation helpful? Give feedback.
All reactions