I have a binary time series classification problem.
Since it is a time series, I can't just train_test_split
my data. So, I used the object tscv = TimeSeriesSplit()
from this link, and got something like this:
I can see from GridSearchCV and cross_val_score that i can pass as parameter my split strategy cv = tscv
. But my question is, whats the difference between GridSearchCV
and coss_val_score
? Using one of them is enough to train/test my model? or should i use both? First the GridSearchCV
to get the best hyperparamaters and then the cross_val_score
?