skfolio/skfolio-fit-on-holdout
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skfolio | warning | none, edit by hand | All versions |
Fit the portfolio optimizer on the training split, then predict or score on
the holdout. This rule follows a locally known skfolio optimizer that fits the
same bare input later split by train_test_split and consumes the holdout
before any refit. A separate deployment fit with no holdout consumer is valid.
Diagnostic message
Section titled “Diagnostic message”Fit the skfolio optimizer on the training split before using it on the holdout.See all rules in the skfolio pack.