Skip to content

Incremental training within rolling window #479

Answered by MaxHalford
occoder asked this question in Q&A
Discussion options

You must be logged in to vote

Hello there. In general you can't explicitely set a window. It all depends on the model you're using. For instance, with neighbors.KNNClassifier, there's a window_size parameter. But with linear_model.LogisticRegression there's no such parameter. However, you can increase/lower the learning rate of the optimizer to produce the same effect. I don't think there's any best practice: it depends on your data. You should simply do some progressive validation with different parameters and see what happens.

I hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@occoder
Comment options

@MaxHalford
Comment options

Answer selected by MaxHalford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants