skfolio/skfolio-fit-loop-vs-online
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skfolio | info | none, edit by hand | skfolio 1.14.4+ |
Repeatedly calling fit resets a skfolio estimator's state. An online evaluator can reuse state through partial_fit on an expanding schedule.
for train, test in WalkForward(10, 30, expand_train=True).split(returns): model.fit(returns.iloc[train])result = online_predict(model, returns, warmup_size=30, test_size=10)What the rule reports
Section titled “What the rule reports”The rule covers direct expanding WalkForward loops. Check prior support and the rebalance schedule before migrating.
Diagnostic message
Section titled “Diagnostic message”This skfolio optimizer supports partial_fit. Consider online_predict or online_score for expanding training windows when the prior supports incremental updates.See all rules in the skfolio pack.