skfolio/removed-in-skfolio
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skfolio | error | unsafe, with xpd check --fix --unsafe-fixes |
skfolio 1.0+ |
skfolio 1.0 removed the decay keyword on exponentially weighted moments, the misspelled WalkForward keyword and the old uncertainty set fields.
EWMu(alpha=0.2)WalkForward(60, 252, expend_train=True)EWMu(half_life=3.10628371950539)WalkForward(60, 252, expand_train=True)What the rule reports
Section titled “What the rule reports”The WalkForward fix changes an exception into a constructor call. Convert alpha with -1 / log2(1 - alpha). For uncertainty sets, choose a radius, a geometry and an explicit norm that express the intended set.
How to fix it
Section titled “How to fix it”Use xpd check --fix --unsafe-fixes to rename expend_train to expand_train and UncertaintySet k/sigma fields to radius/geometry. Convert alpha to half_life by hand.
Diagnostic message
Section titled “Diagnostic message”EWMu and EWCovariance raise TypeError for alpha in skfolio 1.0 and later. An alpha of 0.2 corresponds to a half_life of about 3.11 observations.See all rules in the skfolio pack.