rules/skfolio/skfolio-hierarchical-seriation.md

skfolio HRP and Schur configure their clustering through a HierarchicalSeriation estimator.

diff
1-HierarchicalRiskParity(hierarchical_clustering_estimator=cluster)
2+HierarchicalRiskParity(seriation_estimator=HierarchicalSeriation(hierarchical_clustering_estimator=cluster))

What the rule reports

The rule covers the two constructors and the legacy fitted alias. HERC still accepts hierarchical_clustering_estimator. NCO accepts clustering_estimator.

How to fix it

Use xpd check --fix for the fitted attribute hierarchical_clustering_estimator_ and xpd check --fix --unsafe-fixes to wrap hierarchical_clustering_estimator inside HierarchicalSeriation(...).