Reputation: 145
What X,y I should fit into GridSearchCV? That I have used to train model or to test model? As I found out that using wrong one, resulted in bad accuracy score for the model ;C
Upvotes: 0
Views: 37
Reputation: 897
Always perform GridSearchCV
on your train set, thus X_train
and y_train
.
Upvotes: 1