You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
826 B
24 lines
826 B
|
5 days ago
|
"""This is now a no-op and can be safely removed from your code.
|
||
|
|
|
||
|
|
It used to enable the use of
|
||
|
|
:class:`~sklearn.ensemble.HistGradientBoostingClassifier` and
|
||
|
|
:class:`~sklearn.ensemble.HistGradientBoostingRegressor` when they were still
|
||
|
|
:term:`experimental`, but these estimators are now stable and can be imported
|
||
|
|
normally from `sklearn.ensemble`.
|
||
|
|
"""
|
||
|
|
|
||
|
|
# Authors: The scikit-learn developers
|
||
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
|
||
|
|
# Don't remove this file, we don't want to break users code just because the
|
||
|
|
# feature isn't experimental anymore.
|
||
|
|
|
||
|
|
import warnings
|
||
|
|
|
||
|
|
warnings.warn(
|
||
|
|
"Since version 1.0, "
|
||
|
|
"it is not needed to import enable_hist_gradient_boosting anymore. "
|
||
|
|
"HistGradientBoostingClassifier and HistGradientBoostingRegressor are now "
|
||
|
|
"stable and can be normally imported from sklearn.ensemble."
|
||
|
|
)
|