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
9edea60e
Unverified
Commit
9edea60e
authored
Jun 23, 2023
by
James Lamb
Committed by
GitHub
Jun 23, 2023
Browse files
[python-package] remove hard dependency on 'scikit-learn', fix minimal runtime dependencies (#5942)
parent
2e603f86
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
python-package/README.rst
python-package/README.rst
+9
-0
python-package/pyproject.toml
python-package/pyproject.toml
+7
-0
python-package/setup.cfg
python-package/setup.cfg
+0
-4
No files found.
python-package/README.rst
View file @
9edea60e
...
...
@@ -56,6 +56,15 @@ To install all dependencies needed to use ``pandas`` in LightGBM, append ``[pand
pip install 'lightgbm[pandas]'
Use LightGBM with scikit-learn
******************************
To install all dependencies needed to use ``scikit-learn`` in LightGBM, append ``[scikit-learn]``.
.. code:: sh
pip install 'lightgbm[scikit-learn]'
Build from Sources
******************
...
...
python-package/pyproject.toml
View file @
9edea60e
...
...
@@ -16,6 +16,10 @@ classifiers = [
"Programming Language :: Python :: 3.10"
,
"Topic :: Scientific/Engineering :: Artificial Intelligence"
]
dependencies
=
[
"numpy"
,
"scipy"
]
description
=
"LightGBM Python Package"
license
=
{
file
=
"LICENSE"
}
maintainers
=
[
...
...
@@ -34,6 +38,9 @@ dask = [
pandas
=
[
"pandas>=0.24.0"
]
scikit-learn
=
[
"scikit-learn!=0.22.0"
]
[project.urls]
homepage
=
"https://github.com/microsoft/LightGBM"
...
...
python-package/setup.cfg
View file @
9edea60e
[options]
include_package_data = True
install_requires =
numpy
scikit-learn!=0.22.0
scipy
[options.packages.find]
where = lightgbm
...
...
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