zero-to-mastery-ml icon indicating copy to clipboard operation
zero-to-mastery-ml copied to clipboard

Predicting bulldozer price - Wrong Hyperparameters Tuning

Open DarkDk123 opened this issue 8 months ago • 0 comments

In lecture no. 196, you use RandomizedSearchCV with default cv=5 for tuning hyperparameters, i think that's a wrong approach for time series data! because :

  • It will perform cross validation by randomly splitting the data into 5-folds i.e. losing intrinsic order of data
  • This will result in poor evaluation of best hyperparameters

What ChatGPT says -

image

What we can do is use a TimeSeriesSplit of sklearn!

sphx_glr_plot_cv_indices_013

You should suggest the correct way of doing this in you course soon!

DarkDk123 avatar Jun 21 '24 14:06 DarkDk123