Skip to content

ImportError: Private sklearn API _weighted_percentile removed #7

@Abdul9010150809

Description

@Abdul9010150809

The package currently imports _weighted_percentile from sklearn.utils.stats. This is a private scikit-learn API that has been moved or removed in scikit-learn versions >= 1.0. This prevents Moo-GBT from running in any modern Python environment.

Impact: Total runtime failure on installation with modern dependencies.

Suggested Fix: Implement a local version of weighted_percentile using numpy within src/multiobjective_gbt/_gb_losses.py to remove the hard dependency on sklearn's internal utilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions