You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are going to do feature scaling or any other transformation, we may want do it at every fold of cross validation to prevent data leak from the future. In that case all I need to do is:
First the preprocessing runs, computes lags and transformation if there are any in the MLForecast object.
Then at each fold of the cross_validate() the model is fitted, in that case the pipeline so ColumnTransformer runs before fit. Is this correct ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When we are going to do feature scaling or any other transformation, we may want do it at every fold of cross validation to prevent data leak from the future. In that case all I need to do is:
First the preprocessing runs, computes lags and transformation if there are any in the
MLForecastobject.Then at each fold of the
cross_validate()the model is fitted, in that case the pipeline so ColumnTransformer runs before fit. Is this correct ?Beta Was this translation helpful? Give feedback.
All reactions