Ruslan Pylypiuk
Ruslan Pylypiuk

Reputation: 145

Fitting into GridSearchCV

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

Answers (1)

JonnDough
JonnDough

Reputation: 897

Always perform GridSearchCV on your train set, thus X_train and y_train.

Upvotes: 1

Related Questions