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
c1a7b291
Unverified
Commit
c1a7b291
authored
Oct 01, 2019
by
Nikita Titov
Committed by
GitHub
Oct 01, 2019
Browse files
[python] removed deprecated code (#2474)
parent
9b61166f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
python-package/lightgbm/__init__.py
python-package/lightgbm/__init__.py
+0
-12
No files found.
python-package/lightgbm/__init__.py
View file @
c1a7b291
...
@@ -11,8 +11,6 @@ from .callback import (early_stopping, print_evaluation, record_evaluation,
...
@@ -11,8 +11,6 @@ from .callback import (early_stopping, print_evaluation, record_evaluation,
from
.engine
import
cv
,
train
from
.engine
import
cv
,
train
import
os
import
os
import
warnings
from
platform
import
system
try
:
try
:
from
.sklearn
import
LGBMModel
,
LGBMRegressor
,
LGBMClassifier
,
LGBMRanker
from
.sklearn
import
LGBMModel
,
LGBMRegressor
,
LGBMClassifier
,
LGBMRanker
...
@@ -36,13 +34,3 @@ __all__ = ['Dataset', 'Booster',
...
@@ -36,13 +34,3 @@ __all__ = ['Dataset', 'Booster',
'LGBMModel'
,
'LGBMRegressor'
,
'LGBMClassifier'
,
'LGBMRanker'
,
'LGBMModel'
,
'LGBMRegressor'
,
'LGBMClassifier'
,
'LGBMRanker'
,
'print_evaluation'
,
'record_evaluation'
,
'reset_parameter'
,
'early_stopping'
,
'print_evaluation'
,
'record_evaluation'
,
'reset_parameter'
,
'early_stopping'
,
'plot_importance'
,
'plot_split_value_histogram'
,
'plot_metric'
,
'plot_tree'
,
'create_tree_digraph'
]
'plot_importance'
,
'plot_split_value_histogram'
,
'plot_metric'
,
'plot_tree'
,
'create_tree_digraph'
]
# REMOVEME: remove warning after 2.3.0 version release
if
system
()
==
'Darwin'
:
warnings
.
warn
(
"Starting from version 2.2.1, the library file in distribution wheels for macOS "
"is built by the Apple Clang (Xcode_8.3.3) compiler.
\n
"
"This means that in case of installing LightGBM from PyPI via the ``pip install lightgbm`` command, "
"you don't need to install the gcc compiler anymore.
\n
"
"Instead of that, you need to install the OpenMP library, "
"which is required for running LightGBM on the system with the Apple Clang compiler.
\n
"
"You can install the OpenMP library by the following command: ``brew install libomp``."
,
UserWarning
)
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