Skip to main content

Azure Travis Codecov CircleCI PythonVersion PyPi DOI

scikit-learn

scikit-learn is a Python module for machine learning built on top of SciPy and is distributed under the 3-Clause BSD license.

The project was started in 2007 by David Cournapeau as a Google Summer of Code project, and since then many volunteers have contributed. See the About us page for a list of core contributors.

It is currently maintained by a team of volunteers.

Website: https://scikit-learn.org

Installation

Dependencies

scikit-learn requires:

  • Python (>= 3.6)

  • NumPy (>= 1.13.3)

  • SciPy (>= 0.19.1)

  • joblib (>= 0.11)

  • threadpoolctl (>= 2.0.0)

Scikit-learn 0.20 was the last version to support Python 2.7 and Python 3.4. scikit-learn 0.23 and later require Python 3.6 or newer.

Scikit-learn plotting capabilities (i.e., functions start with plot_ and classes end with “Display”) require Matplotlib (>= 2.1.1). For running the examples Matplotlib >= 2.1.1 is required. A few examples require scikit-image >= 0.13, a few examples require pandas >= 0.18.0, some examples require seaborn >= 0.9.0.

User installation

If you already have a working installation of numpy and scipy, the easiest way to install scikit-learn is using pip

pip install -U scikit-learn

or conda:

conda install scikit-learn

The documentation includes more detailed installation instructions.

Changelog

See the changelog for a history of notable changes to scikit-learn.

Development

We welcome new contributors of all experience levels. The scikit-learn community goals are to be helpful, welcoming, and effective. The Development Guide has detailed information about contributing code, documentation, tests, and more. We’ve included some basic information in this README.

Source code

You can check the latest sources with the command:

git clone https://github.com/scikit-learn/scikit-learn.git

Contributing

To learn more about making a contribution to scikit-learn, please see our Contributing guide.

Testing

After installation, you can launch the test suite from outside the source directory (you will need to have pytest >= 3.3.0 installed):

pytest sklearn

See the web page https://scikit-learn.org/dev/developers/advanced_installation.html#testing for more information.

Random number generation can be controlled during testing by setting the SKLEARN_SEED environment variable.

Submitting a Pull Request

Before opening a Pull Request, have a look at the full Contributing page to make sure your code complies with our guidelines: https://scikit-learn.org/stable/developers/index.html

Project History

The project was started in 2007 by David Cournapeau as a Google Summer of Code project, and since then many volunteers have contributed. See the About us page for a list of core contributors.

The project is currently maintained by a team of volunteers.

Note: scikit-learn was previously referred to as scikits.learn.

Help and Support

Documentation

Communication

Citation

If you use scikit-learn in a scientific publication, we would appreciate citations: https://scikit-learn.org/stable/about.html#citing-scikit-learn

Release files for scikit-learn 0.23.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scikit-learn 0.23.1
File Size Uploaded
scikit-learn-0.23.1.tar.gz 7.2 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for scikit-learn 0.23.1
File
scikit_learn-0.23.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
scikit_learn-0.23.1-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
scikit_learn-0.23.1-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
scikit_learn-0.23.1-cp38-cp38-manylinux1_i686.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-32 Details
scikit_learn-0.23.1-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details
scikit_learn-0.23.1-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
scikit_learn-0.23.1-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
scikit_learn-0.23.1-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
scikit_learn-0.23.1-cp37-cp37m-manylinux1_i686.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32 Details
scikit_learn-0.23.1-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details
scikit_learn-0.23.1-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
scikit_learn-0.23.1-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
scikit_learn-0.23.1-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
scikit_learn-0.23.1-cp36-cp36m-manylinux1_i686.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32 Details
scikit_learn-0.23.1-cp36-cp36m-macosx_10_9_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64 Details

Total release size: 106.6 MB

Release files / scikit-learn-0.23.1.tar.gz

Download URL scikit-learn-0.23.1.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
e3fec1c8831f8f93ad85581ca29ca1bb88e2da377fb097cf8322aa89c21bc9b8
BLAKE2b-256 checksum
How to use checksums
23b0ff0f4ffa3da1ddb242a295d5d19dd1775f567ad73a6ea7474eaa55e04836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp38-cp38-win_amd64.whl

Download URL scikit_learn-0.23.1-cp38-cp38-win_amd64.whl
Size 6.8 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
16feae4361be6b299d4d08df5a30956b4bfc8eadf173fe9258f6d59630f851d4
BLAKE2b-256 checksum
How to use checksums
7ee5888491b7e2c16718a68dfd8498325e8927003410b2d19ba255d8751338a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp38-cp38-win32.whl

Download URL scikit_learn-0.23.1-cp38-cp38-win32.whl
Size 6.0 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
5bcea4d6ee431c814261117281363208408aa4e665633655895feb059021aca6
BLAKE2b-256 checksum
How to use checksums
4ae5e6499000a1e73af77e0bc975bfebea2de4a83a82d4facf47339a953fc98f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp38-cp38-manylinux1_x86_64.whl

Download URL scikit_learn-0.23.1-cp38-cp38-manylinux1_x86_64.whl
Size 6.7 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
3e6e92b495eee193a8fa12a230c9b7976ea0fc1263719338e35c986ea1e42cff
BLAKE2b-256 checksum
How to use checksums
4714c094698b7dd17cd2e289974a78d6d2df78c0d9eb0ac4d8d5fad255aaf977
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp38-cp38-manylinux1_i686.whl

Download URL scikit_learn-0.23.1-cp38-cp38-manylinux1_i686.whl
Size 6.4 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
93f56abd316d131645559ec0ab4f45e3391c2ccdd4eadaa4912f4c1e0a6f2c96
BLAKE2b-256 checksum
How to use checksums
c27bc22988d5cf6b9fedb206976afa48a492e7fb4fa43cff45667e45dd8d44ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp38-cp38-macosx_10_9_x86_64.whl

Download URL scikit_learn-0.23.1-cp38-cp38-macosx_10_9_x86_64.whl
Size 7.2 MB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
0c3464e46ef8bd4f1bfa5c009648c6449412c8f7e9b3fc0c9e3d800139c48827
BLAKE2b-256 checksum
How to use checksums
ea47078b5ef83ccff1def48c29158be998375321397be53af6dc10f22c6dc08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp37-cp37m-win_amd64.whl

Download URL scikit_learn-0.23.1-cp37-cp37m-win_amd64.whl
Size 6.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
04799686060ecbf8992f26a35be1d99e981894c8c7860c1365cda4200f954a16
BLAKE2b-256 checksum
How to use checksums
708e682770fc1da047bb56443150bfd8d87d850459cd7cc412a5311de3abaa4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp37-cp37m-win32.whl

Download URL scikit_learn-0.23.1-cp37-cp37m-win32.whl
Size 5.9 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
bded94236e16774385202cafd26190ce96db18e4dc21e99473848c61e4fdc400
BLAKE2b-256 checksum
How to use checksums
65d21dfc10c0b7b4182f4f430fa4b873f6084ab384a665ba283c3c6bbf59f692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp37-cp37m-manylinux1_x86_64.whl

Download URL scikit_learn-0.23.1-cp37-cp37m-manylinux1_x86_64.whl
Size 6.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
0e7b55f73b35537ecd0d19df29dd39aa9e076dba78f3507b8136c819d84611fd
BLAKE2b-256 checksum
How to use checksums
b87e74e707b66490d4eb05f702966ad0990881127acecf9d5cdcef3c95ec6c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp37-cp37m-manylinux1_i686.whl

Download URL scikit_learn-0.23.1-cp37-cp37m-manylinux1_i686.whl
Size 6.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
9e04c0811ea92931ee8490d638171b8cb2f21387efcfff526bbc8c2a3da60f1c
BLAKE2b-256 checksum
How to use checksums
9536578390593c1ec00049e2d7498c9b49f884ce1db19eb82bb863db4cdd3529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL scikit_learn-0.23.1-cp37-cp37m-macosx_10_9_x86_64.whl
Size 7.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
244ca85d6eba17a1e6e8a66ab2f584be6a7784b5f59297e3d7ff8c7983af627c
BLAKE2b-256 checksum
How to use checksums
323751bf33e269be272255ab6a1c172e15b930bcf33316616efc82e0759ca4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp36-cp36m-win_amd64.whl

Download URL scikit_learn-0.23.1-cp36-cp36m-win_amd64.whl
Size 6.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
e585682e37f2faa81ad6cd4472fff646bf2fd0542147bec93697a905db8e6bd2
BLAKE2b-256 checksum
How to use checksums
5e2edde3fd9f0bfb5892b9473b817a64ac9e933794c1af6131a8b2ab1e4b1345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp36-cp36m-win32.whl

Download URL scikit_learn-0.23.1-cp36-cp36m-win32.whl
Size 5.9 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
c2fa33d20408b513cf432505c80e6eb4bf4d71434f1ae36680765d4a2c2a16ec
BLAKE2b-256 checksum
How to use checksums
80706e291fe95ccdebd986ca11337b6784667852255eaeed44d0ec7c4524c053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp36-cp36m-manylinux1_x86_64.whl

Download URL scikit_learn-0.23.1-cp36-cp36m-manylinux1_x86_64.whl
Size 6.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e9879ba9e64ec3add41bf201e06034162f853652ef4849b361d73b0deb3153ad
BLAKE2b-256 checksum
How to use checksums
d93aeb8d7bbe28f4787d140bb9df685b7d5bf6115c0e2a969def4027144e98b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp36-cp36m-manylinux1_i686.whl

Download URL scikit_learn-0.23.1-cp36-cp36m-manylinux1_i686.whl
Size 6.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
ebe853e6f318f9d8b3b74dd17e553720d35646eff675a69eeaed12fbbbb07daa
BLAKE2b-256 checksum
How to use checksums
4eefe7e8e8773514b50cd01e97f08867c08b5e1afa62e482e88cc8b9dced6043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scikit_learn-0.23.1-cp36-cp36m-macosx_10_9_x86_64.whl

Download URL scikit_learn-0.23.1-cp36-cp36m-macosx_10_9_x86_64.whl
Size 7.2 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
058d213092de4384710137af1300ed0ff030b8c40459a6c6f73c31ccd274cc39
BLAKE2b-256 checksum
How to use checksums
d6ae8881e17e9864be2c4feb8ec990f84d3969ef8ce23565487e27e2480d5597
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

1.9.1

43 release files

1.8.0

37 release files

1.7.1

26 release files

1.6.1

30 release files

1.5.2

26 release files

1.5.0

21 release files

1.4.0

41 release files

1.3.2

26 release files

1.3.1

26 release files

1.3.0

21 release files

1.2.1

21 release files

1.1.3

21 release files

1.1.1

18 release files

1.1.0

18 release files

1.0.2

32 release files

1.0.1

25 release files

1.0

25 release files

This release

0.23.1 This release

16 release files

0.22

21 release files

0.18

20 release files

0.17

17 release files

0.14

1 release file

0.13.1

3 release files

0.13

3 release files

0.12

3 release files

0.11

3 release files

0.10

3 release files

0.9

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page