GridSearch on imbalanced datasets
Do grid search on the same Level of &quot;imbalancedeness&quot; that you plan/are able to do your Training and Evaluation on.
So that means that if you saw that imbalanced data set does not skew your model predictions or results in other unwanted Outcomes, done use the maximal dataset possible. But on the other Hand if your model is strongly overfitting because of imbalanced dataset then optimisation with grid search will make him overfit more in that direction.