skfolio/deprecated-in-skfolio
| Rule | deprecated-in-skfolio |
|---|---|
| Pack | skfolio |
| Severity | error |
| Fix | safe, with xpd check --fix |
| Library versions | skfolio 1.14.4 and later |
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.
Message
Section titled “Message”xpd prints this message with the issue. A name that starts with $ stands for code from your file.
The old hierarchical skfolio export raises FutureWarning. Import the optimizer from skfolio.optimization.hierarchical.Browse the other rules of the skfolio pack.