skfolio/skfolio-grid-search-vs-online
| Rule | skfolio-grid-search-vs-online |
|---|---|
| Pack | skfolio |
| Severity | info |
| Fix | none, edit by hand |
| Library versions | skfolio 1.14.4 and later |
scikit-learn GridSearchCV fits each skfolio estimator clone on each fold. skfolio provides online search for expanding evaluations that can reuse estimator state.
GridSearchCV(MeanRisk(), grid, cv=WalkForward(10, 30, expand_train=True))OnlineGridSearch(MeanRisk(), grid, warmup_size=30, test_size=10)What the rule reports
Section titled “What the rule reports”Use online search when the prior and optimizer both support the required online updates. Match the schedule and scoring before comparing results.
Message
Section titled “Message”xpd prints this message with the issue. A name that starts with $ stands for code from your file.
Consider skfolio OnlineGridSearch or OnlineRandomizedSearch for an expanding WalkForward search with an incrementally updatable estimator.Browse the other rules of the skfolio pack.