enable_hist_gradient_boosting.py 746 B

1234567891011121314151617181920
  1. """This is now a no-op and can be safely removed from your code.
  2. It used to enable the use of
  3. :class:`~sklearn.ensemble.HistGradientBoostingClassifier` and
  4. :class:`~sklearn.ensemble.HistGradientBoostingRegressor` when they were still
  5. :term:`experimental`, but these estimators are now stable and can be imported
  6. normally from `sklearn.ensemble`.
  7. """
  8. # Don't remove this file, we don't want to break users code just because the
  9. # feature isn't experimental anymore.
  10. import warnings
  11. warnings.warn(
  12. "Since version 1.0, "
  13. "it is not needed to import enable_hist_gradient_boosting anymore. "
  14. "HistGradientBoostingClassifier and HistGradientBoostingRegressor are now "
  15. "stable and can be normally imported from sklearn.ensemble."
  16. )