skfolio/deprecated-in-skfolio
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skfolio | error | safe, with xpd check --fix |
skfolio 1.14.4+ |
skfolio plans to remove its deprecated hierarchical import paths, annualized_factor and non_denominated_sort in 2.0.
from skfolio.optimization.cluster import HierarchicalRiskParityPortfolio(returns, weights, annualized_factor=252)population.non_denominated_sort()from skfolio.optimization.hierarchical import HierarchicalRiskParityPortfolio(returns, weights, annualization_factor=252)population.non_dominated_sort()What the rule reports
Section titled “What the rule reports”The keyword fix keeps the annualization value and type. On ImpliedCovariance, the old name is also an estimator parameter. Code that inspects the constructor or relies on warning capture needs separate review.
How to fix it
Section titled “How to fix it”Use xpd check --fix to apply safe fixes for hierarchical imports, annualized_factor, and non_denominated_sort.
Diagnostic message
Section titled “Diagnostic message”The old hierarchical skfolio export raises FutureWarning. Import the optimizer from skfolio.optimization.hierarchical.See all rules in the skfolio pack.