Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
99ac1ef8
Unverified
Commit
99ac1ef8
authored
Jul 06, 2023
by
James Lamb
Committed by
GitHub
Jul 06, 2023
Browse files
[docs] add versionadded notes for v4.0.0 features (#5948)
parent
d9c7c72a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+7
-0
No files found.
python-package/lightgbm/sklearn.py
View file @
99ac1ef8
...
...
@@ -484,6 +484,9 @@ class LGBMModel(_LGBMModelBase):
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
either the ``joblib`` or the ``psutil`` util libraries to be installed).
.. versionchanged:: 4.0.0
importance_type : str, optional (default='split')
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.
...
...
@@ -968,6 +971,8 @@ class LGBMModel(_LGBMModelBase):
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``.
.. versionadded:: 4.0.0
"""
if
not
self
.
__sklearn_is_fitted__
():
raise
LGBMNotFittedError
(
'No n_estimators found. Need to call fit beforehand.'
)
...
...
@@ -979,6 +984,8 @@ class LGBMModel(_LGBMModelBase):
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``.
.. versionadded:: 4.0.0
"""
if
not
self
.
__sklearn_is_fitted__
():
raise
LGBMNotFittedError
(
'No n_iter found. Need to call fit beforehand.'
)
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment