"src/liger_kernel/transformers/monkey_patch.py" did not exist on "fe5cd1fcc6d5ddf0e39a41a33223cf3377548c7f"
Unverified Commit 99ac1ef8 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[docs] add versionadded notes for v4.0.0 features (#5948)

parent d9c7c72a
...@@ -484,6 +484,9 @@ class LGBMModel(_LGBMModelBase): ...@@ -484,6 +484,9 @@ class LGBMModel(_LGBMModelBase):
threads configured for OpenMP in the system. A value of ``None`` (the default) corresponds threads configured for OpenMP in the system. A value of ``None`` (the default) corresponds
to using the number of physical cores in the system (its correct detection requires to using the number of physical cores in the system (its correct detection requires
either the ``joblib`` or the ``psutil`` util libraries to be installed). either the ``joblib`` or the ``psutil`` util libraries to be installed).
.. versionchanged:: 4.0.0
importance_type : str, optional (default='split') importance_type : str, optional (default='split')
The type of feature importance to be filled into ``feature_importances_``. The type of feature importance to be filled into ``feature_importances_``.
If 'split', result contains numbers of times the feature is used in a model. If 'split', result contains numbers of times the feature is used in a model.
...@@ -968,6 +971,8 @@ class LGBMModel(_LGBMModelBase): ...@@ -968,6 +971,8 @@ class LGBMModel(_LGBMModelBase):
This might be less than parameter ``n_estimators`` if early stopping was enabled or This might be less than parameter ``n_estimators`` if early stopping was enabled or
if boosting stopped early due to limits on complexity like ``min_gain_to_split``. if boosting stopped early due to limits on complexity like ``min_gain_to_split``.
.. versionadded:: 4.0.0
""" """
if not self.__sklearn_is_fitted__(): if not self.__sklearn_is_fitted__():
raise LGBMNotFittedError('No n_estimators found. Need to call fit beforehand.') raise LGBMNotFittedError('No n_estimators found. Need to call fit beforehand.')
...@@ -979,6 +984,8 @@ class LGBMModel(_LGBMModelBase): ...@@ -979,6 +984,8 @@ class LGBMModel(_LGBMModelBase):
This might be less than parameter ``n_estimators`` if early stopping was enabled or This might be less than parameter ``n_estimators`` if early stopping was enabled or
if boosting stopped early due to limits on complexity like ``min_gain_to_split``. if boosting stopped early due to limits on complexity like ``min_gain_to_split``.
.. versionadded:: 4.0.0
""" """
if not self.__sklearn_is_fitted__(): if not self.__sklearn_is_fitted__():
raise LGBMNotFittedError('No n_iter found. Need to call fit beforehand.') raise LGBMNotFittedError('No n_iter found. Need to call fit beforehand.')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment