INRIA / scikit-learn-mooc

Machine learning in Python with scikit-learn MOOC
https://inria.github.io/scikit-learn-mooc
Creative Commons Attribution 4.0 International
1.12k stars 516 forks source link

MAINT Remove sparse_threshold #736

Closed ArturoAmorQ closed 1 year ago

ArturoAmorQ commented 1 year ago

Fixes #476.

The fact that HistGradientBoostingClassifier does not support sparse data is not a problem when used along with OrdinalEncoder inside a pipelines. This PR simplifies the code by removing the sparse_threshold=0 parameter from the ColumnTransformer.