Skip to content

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 HierarchicalRiskParity
Portfolio(returns, weights, annualized_factor=252)
population.non_denominated_sort()
from skfolio.optimization.hierarchical import HierarchicalRiskParity
Portfolio(returns, weights, annualization_factor=252)
population.non_dominated_sort()

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.

Use xpd check --fix to apply safe fixes for hierarchical imports, annualized_factor, and non_denominated_sort.

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.