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
8d016c12
"python-package/vscode:/vscode.git/clone" did not exist on "05754b957921d37bc3a2be25f5afe979c7e2f647"
Commit
8d016c12
authored
Nov 26, 2017
by
Nikita Titov
Committed by
Guolin Ke
Nov 26, 2017
Browse files
removed outdated code (#1084)
parent
750a11b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+0
-16
No files found.
python-package/lightgbm/sklearn.py
View file @
8d016c12
...
...
@@ -273,12 +273,6 @@ class LGBMModel(_LGBMModelBase):
def
get_params
(
self
,
deep
=
True
):
params
=
super
(
LGBMModel
,
self
).
get_params
(
deep
=
deep
)
params
.
update
(
self
.
_other_params
)
if
'seed'
in
params
:
warnings
.
warn
(
'The `seed` parameter is deprecated and will be removed in 2.0.12 version. '
'Please use `random_state` instead.'
,
LGBMDeprecationWarning
)
if
'nthread'
in
params
:
warnings
.
warn
(
'The `nthread` parameter is deprecated and will be removed in 2.0.12 version. '
'Please use `n_jobs` instead.'
,
LGBMDeprecationWarning
)
return
params
# minor change to support `**kwargs`
...
...
@@ -578,16 +572,6 @@ class LGBMModel(_LGBMModelBase):
raise
LGBMNotFittedError
(
'No feature_importances found. Need to call fit beforehand.'
)
return
self
.
booster_
.
feature_importance
()
def
booster
(
self
):
warnings
.
warn
(
'The `booster()` method is deprecated and will be removed in 2.0.12 version. '
'Please use attribute `booster_` instead.'
,
LGBMDeprecationWarning
)
return
self
.
booster_
def
feature_importance
(
self
):
warnings
.
warn
(
'The `feature_importance()` method is deprecated and will be removed in 2.0.12 version. '
'Please use attribute `feature_importances_` instead.'
,
LGBMDeprecationWarning
)
return
self
.
feature_importances_
class
LGBMRegressor
(
LGBMModel
,
_LGBMRegressorBase
):
"""LightGBM regressor."""
...
...
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