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)

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.0

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.0
File Size Uploaded
scikit-learn-0.23.0.tar.gz 7.2 MB Details

Built distributions (wheels)

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

Total release size: 109.1 MB

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

Download URL scikit-learn-0.23.0.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
639a53df6273acc6a7510fb0c658b94e0c70bb13dafff9d14932c981ff9baff4
BLAKE2b-256 checksum
How to use checksums
72e475247cf75e9e3ba1bf296c9d26ba1cfc71d781821d32bcdb4d9b4b1b4153
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.0-cp38-cp38-win_amd64.whl

Download URL scikit_learn-0.23.0-cp38-cp38-win_amd64.whl
Size 6.8 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
fa6acbb1646321d5a81bd56413e4cf9323ff96dfbaa61d0905bcac7557e97167
BLAKE2b-256 checksum
How to use checksums
5488cb2146727c522b07f6c00c004c6ab26a9fe063a03a286c5495c841a6dd99
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.0-cp38-cp38-win32.whl

Download URL scikit_learn-0.23.0-cp38-cp38-win32.whl
Size 6.0 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
b25d8c6ff7e3fd1eb9d54b2159b8bd6adb2f0d625e0fe0e5418a5af37b1e9f22
BLAKE2b-256 checksum
How to use checksums
4327ce42b34c6a79e8a0ab6b7e57a255916368d6339cc232df12373fe89c30f5
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.0-cp38-cp38-manylinux1_x86_64.whl

Download URL scikit_learn-0.23.0-cp38-cp38-manylinux1_x86_64.whl
Size 7.2 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
22ad50d5f723d31c800668257fd5fa57b192efc7e6e14c22fcfac05b448861b3
BLAKE2b-256 checksum
How to use checksums
121925f7faef549021f7a4d75a6dacb0a664a92cfb95bd4466417b2458bccaa9
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.0-cp38-cp38-manylinux1_i686.whl

Download URL scikit_learn-0.23.0-cp38-cp38-manylinux1_i686.whl
Size 6.6 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
0ee93f35416b3bd454746cbc465f0aa093c7e7a1e2a2c3b01fdfddc8554977fd
BLAKE2b-256 checksum
How to use checksums
7efa4fae1f1e763d52cb7db1f626e83649438b726de43793c4d92376f100f022
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.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL scikit_learn-0.23.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 7.5 MB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
25072aacd7b48a7db49e7a47161c87307a68ed514735b9acdd005e5e6ca16644
BLAKE2b-256 checksum
How to use checksums
ed367ee919e75e7ddf8075fde5e1c8e329f7ec58ee5ade6e077b5b73cabf41cf
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.0-cp37-cp37m-win_amd64.whl

Download URL scikit_learn-0.23.0-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
f124dfd6a105673c783ff7e259ceab890dffcdb05ecd3f44783dda5b75efa863
BLAKE2b-256 checksum
How to use checksums
b0d4be6d6339b2cc7de15a4ac6625e33ff17bbe7df38907f5ec9dfb24ed6be25
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.0-cp37-cp37m-win32.whl

Download URL scikit_learn-0.23.0-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
9af0670cc1f9beb141b245bda3b73444d28d08bc0d4295b942ee8c49c7216686
BLAKE2b-256 checksum
How to use checksums
c61c05fffda99f42966925e042f4d010b30bd4fb1ac9b3737a6e06e5c5a1604d
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.0-cp37-cp37m-manylinux1_x86_64.whl

Download URL scikit_learn-0.23.0-cp37-cp37m-manylinux1_x86_64.whl
Size 7.3 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
2c753a0183be9c1c1e95429ac1e31dcaeb02076b9ae50123af14c89684d59edb
BLAKE2b-256 checksum
How to use checksums
23c35f6e7317246d39b1921d3b697b4e419657eb728a1f02f9df4a019a35ccaf
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.0-cp37-cp37m-manylinux1_i686.whl

Download URL scikit_learn-0.23.0-cp37-cp37m-manylinux1_i686.whl
Size 6.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
3a12a580e841e22e65c4b70a622c4d34338cf081689a27e03f169567effbe2ec
BLAKE2b-256 checksum
How to use checksums
0626b4fa4482eb726040b695c025354f484e206ed5c970f7010786cbbf602852
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.0-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL scikit_learn-0.23.0-cp37-cp37m-macosx_10_9_x86_64.whl
Size 7.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
02f502b9ba70b4ffbcf8cfe89670eec91f2aaeacf06eed4d5deb26f29003bfd7
BLAKE2b-256 checksum
How to use checksums
44f1163b78bc93d49cb06e35cdd3788807dd8747345dfd032f6a130dc83f0f60
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.0-cp36-cp36m-win_amd64.whl

Download URL scikit_learn-0.23.0-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
5c36671023d50eda1eb369eedc3989852248ac2ec11dcffb7d41d0412761f272
BLAKE2b-256 checksum
How to use checksums
496729c7bd8cf9fde3bcb554a1b213217b28538b2e4fef2bfddeb481f169da40
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.0-cp36-cp36m-win32.whl

Download URL scikit_learn-0.23.0-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
92d318c39ca5c3e193c6a4cb22df095a690ccf84dd83d9bede2e263e94bc5023
BLAKE2b-256 checksum
How to use checksums
c815d4e56fffca250f542f15a5722bfd5d5568969c59e33480ac21153278c09f
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.0-cp36-cp36m-manylinux1_x86_64.whl

Download URL scikit_learn-0.23.0-cp36-cp36m-manylinux1_x86_64.whl
Size 7.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
bb3ca700c3d89151424cc62d9149a59ed7b9b627ef5223e022b45b5d30938dd1
BLAKE2b-256 checksum
How to use checksums
4bcdaf7469eb9d2b2ba428206273585f0272b6094ae915aed0b1ca99eace56df
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.0-cp36-cp36m-manylinux1_i686.whl

Download URL scikit_learn-0.23.0-cp36-cp36m-manylinux1_i686.whl
Size 6.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
4d04373c4bb1b97c786cd7fee92db63204699198e2e5b3744da287a825ec8fe8
BLAKE2b-256 checksum
How to use checksums
15277101ec66ed83dd27c71d1f8cd508afadd030c9acb0ae43482eb11311fa6e
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.0-cp36-cp36m-macosx_10_9_x86_64.whl

Download URL scikit_learn-0.23.0-cp36-cp36m-macosx_10_9_x86_64.whl
Size 7.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
511e267853803ebf56333604be7b6ead373fa7c2314930a1fd7ad003b6347c04
BLAKE2b-256 checksum
How to use checksums
03b725a3c96bba49f2506d0d474d951623ef89bde85efea517ed59446e809157
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.0 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