Unverified Commit 9edea60e authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] remove hard dependency on 'scikit-learn', fix minimal runtime dependencies (#5942)

parent 2e603f86
...@@ -56,6 +56,15 @@ To install all dependencies needed to use ``pandas`` in LightGBM, append ``[pand ...@@ -56,6 +56,15 @@ To install all dependencies needed to use ``pandas`` in LightGBM, append ``[pand
pip install 'lightgbm[pandas]' 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 Build from Sources
****************** ******************
......
...@@ -16,6 +16,10 @@ classifiers = [ ...@@ -16,6 +16,10 @@ classifiers = [
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence" "Topic :: Scientific/Engineering :: Artificial Intelligence"
] ]
dependencies = [
"numpy",
"scipy"
]
description = "LightGBM Python Package" description = "LightGBM Python Package"
license = {file = "LICENSE"} license = {file = "LICENSE"}
maintainers = [ maintainers = [
...@@ -34,6 +38,9 @@ dask = [ ...@@ -34,6 +38,9 @@ dask = [
pandas = [ pandas = [
"pandas>=0.24.0" "pandas>=0.24.0"
] ]
scikit-learn = [
"scikit-learn!=0.22.0"
]
[project.urls] [project.urls]
homepage = "https://github.com/microsoft/LightGBM" homepage = "https://github.com/microsoft/LightGBM"
......
[options] [options]
include_package_data = True include_package_data = True
install_requires =
numpy
scikit-learn!=0.22.0
scipy
[options.packages.find] [options.packages.find]
where = lightgbm where = lightgbm
......
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