I would like to run a regular 'gridsearch without the CV', i.e. I don't want to cross-validate, but setting cv=1
is not allowed.
I am doing this because I am using a classifier to draw decision boundaries and visualize/understand my data instead of predicting labels, and do not care about the generalization error. I would like to minimize the training error instead.
EDIT: I guess I'm really asking two questions
- How to hack
cv=1
inGridSearchCV
? Answered by ogrisel below - Does it make sense to do a gridsearch to minimize training error instead of generalization error, and if so, how would I do that? I suspect it involves inserting my own scoring function for the
scoring
parameter inGridSearchCV
?