Skip to content

skfolio/skfolio-grid-search-vs-online

Pack Severity Fix Versions
skfolio info none, edit by hand skfolio 1.14.4+

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)

Use online search when the prior and optimizer both support the required online updates. Match the schedule and scoring before comparing results.

Consider skfolio OnlineGridSearch or OnlineRandomizedSearch for an expanding WalkForward search with an incrementally updatable estimator.

See all rules in the skfolio pack.