Skip to main content

Azure Travis Codecov CircleCI Nightly wheels Black PythonVersion PyPi DOI Benchmark

https://raw.githubusercontent.com/scikit-learn/scikit-learn/main/doc/logos/scikit-learn-logo.png

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.8)

  • NumPy (>= 1.17.3)

  • SciPy (>= 1.3.2)

  • joblib (>= 1.1.1)

  • threadpoolctl (>= 2.0.0)


Scikit-learn 0.20 was the last version to support Python 2.7 and Python 3.4. scikit-learn 1.0 and later require Python 3.7 or newer. scikit-learn 1.1 and later require Python 3.8 or newer.

Scikit-learn plotting capabilities (i.e., functions start with plot_ and classes end with “Display”) require Matplotlib (>= 3.1.3). For running the examples Matplotlib >= 3.1.3 is required. A few examples require scikit-image >= 0.16.2, a few examples require pandas >= 1.0.5, some examples require seaborn >= 0.9.0 and plotly >= 5.10.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 -c conda-forge 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 >= 5.3.1 installed):

pytest sklearn

See the web page https://scikit-learn.org/dev/developers/contributing.html#testing-and-improving-test-coverage 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 1.2.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 1.2.1
File Size Uploaded
scikit-learn-1.2.1.tar.gz 7.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for scikit-learn 1.2.1
File
scikit_learn-1.2.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
scikit_learn-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
scikit_learn-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
scikit_learn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl CPython 3.11 CPython 3.11 macOS 12.0+ ARM64 Details
scikit_learn-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
scikit_learn-1.2.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
scikit_learn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl CPython 3.10 CPython 3.10 macOS 12.0+ ARM64 Details
scikit_learn-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
scikit_learn-1.2.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
scikit_learn-1.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
scikit_learn-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
scikit_learn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl CPython 3.9 CPython 3.9 macOS 12.0+ ARM64 Details
scikit_learn-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
scikit_learn-1.2.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
scikit_learn-1.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
scikit_learn-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details
scikit_learn-1.2.1-cp38-cp38-macosx_12_0_arm64.whl CPython 3.8 CPython 3.8 macOS 12.0+ ARM64 Details
scikit_learn-1.2.1-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details

Total release size: 185.5 MB

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

Download URL scikit-learn-1.2.1.tar.gz
Size 7.3 MB
Tags Source
SHA-256 checksum
How to use checksums
fbf8a5c893c9b4b99bcc7ed8fb3e8500957a113f4101860386d06635520f7cfb
BLAKE2b-256 checksum
How to use checksums
86ccf2685fc3fc37122fe8be22e6c0dfdaeab49026625b8c2cf41bc87b1cdd4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp311-cp311-win_amd64.whl

Download URL scikit_learn-1.2.1-cp311-cp311-win_amd64.whl
Size 8.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5523e21ab2b4d52b2bd41bedd335dbe8f3c1b5f6dd7c9c001b2e17ec9818af8d
BLAKE2b-256 checksum
How to use checksums
f3ff335ea1e87a0fb53e9ef340decd197c11215c971fb0448eff3fdb4e8205dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_learn-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.6 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
479aedd0abedbda6b8b4529145fe4cd8622f69f726a72cef8f75548a93eeb1e1
BLAKE2b-256 checksum
How to use checksums
805347bed2190d2d86914223454f69744553521bc20c7de922d6a3b5300316ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL scikit_learn-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 9.1 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
cba0c7c6bf1493f8ce670bab69f9317874826ee838988de377ae355abd4d74cf
BLAKE2b-256 checksum
How to use checksums
e8ed4475fcfb97bf0952a5cabdfc770e155f8c7502340333cd5f613185b33df6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl

Download URL scikit_learn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl
Size 8.4 MB
Tags CPython 3.11 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
5a8111f3c7a314017ebf90d6feab861c11d1ca14f3dbafb39abcc31aa4c54ba6
BLAKE2b-256 checksum
How to use checksums
f9951809108c46c2a235522c43659d3fa049f3a9a5ae3f5e143e664af524abb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl

Download URL scikit_learn-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl
Size 9.0 MB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
70fa30d146b7e9d0c256e73e271b3e17f23123b7c4adcbde1a385031adf59090
BLAKE2b-256 checksum
How to use checksums
e3c7a229a30b01f8891ec0c63062153e63ecbb624b5308ec6b374850663a092a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp310-cp310-win_amd64.whl

Download URL scikit_learn-1.2.1-cp310-cp310-win_amd64.whl
Size 8.3 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a9abf17d177df54e529154f26acfd42930e19117d045e8a9a8e893ca82dd94ec
BLAKE2b-256 checksum
How to use checksums
5bae86420a0bc19059ee5881312edb4c852e64c8d2606bc6dba011d88e72fc80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d8bcd303dd982494842a3f482f844d539484c6043b4eed896b43ea8e5f609a21
BLAKE2b-256 checksum
How to use checksums
805ef095ccdf24860a7548b39f93d2df03017ad3218f90a0406feb5e5661d0c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 9.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
dc838b5a4057c55ba81b82316ea8bf443af445f96eb21500b0e40618017e0923
BLAKE2b-256 checksum
How to use checksums
676ec97b24a8af70b1e8983ac1fd6d66d9b650c3051ed2abb5afdbaa4f464177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl

Download URL scikit_learn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl
Size 8.4 MB
Tags CPython 3.10 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
c9285275a435d1f8f47bbe3500346ab9ead2499e0e090518404d318ea90d1c1c
BLAKE2b-256 checksum
How to use checksums
019df324b8fc4f754b5658a3da4c84935e34c5f981682c72b881dcb1fc3e2a8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl

Download URL scikit_learn-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl
Size 9.1 MB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
bed9f75763bd392c094bf474c7ab75a01d68b15146ea7a20c0f9ff6fb3063dad
BLAKE2b-256 checksum
How to use checksums
e36a7190eaad30b55bc68b9d2872b21d42692924ac9a7d274636e112ed51a08b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp39-cp39-win_amd64.whl

Download URL scikit_learn-1.2.1-cp39-cp39-win_amd64.whl
Size 8.4 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
c722f3446ad8c4f1a93b2399fe1a188635b94709a3f25e6f4d61efbe75fe8eaa
BLAKE2b-256 checksum
How to use checksums
68d443923b9681bbdc9cbee7708dcead33dfcbfcba090ecb0c507af3669c8480
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_learn-1.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e0ee4d4d32c94e082344308528f7b3c9294b60ab19c84eb37a2d9c88bdffd9d1
BLAKE2b-256 checksum
How to use checksums
de5ba3ee68c28dde18b9b744124c7e1701b8e5d588c8b0ef44d233864a97cffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL scikit_learn-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 9.2 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
61bb9c654b5d2e6cdd4b1c7e6048fc66270c1682bda1b0f7d2726fdae09010f4
BLAKE2b-256 checksum
How to use checksums
b85b945891bd69a4a825ff253de4eb8d976fd77a782a5c3f2537991b3b21b966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl

Download URL scikit_learn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl
Size 8.4 MB
Tags CPython 3.9 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
da0e2d50a8435ea8dc5cd21f1fc1a45d329bae03dcca92087ebed859d22d184e
BLAKE2b-256 checksum
How to use checksums
04213f870c6e4399eef775062a6eaf951d034dd08ab7ef6509292ca6f5fbcfef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl

Download URL scikit_learn-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl
Size 9.1 MB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d00e46a2a7fce6e118ed0f4c6263785bf6c297a94ffd0cd7b32455043c508cc8
BLAKE2b-256 checksum
How to use checksums
9a295f428cb6098188c8e19a92d9af1e0794f121c6a2c41f94c59bf426106175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL scikit_learn-1.2.1-cp38-cp38-win_amd64.whl
Size 8.3 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
54731e2c2fbff40da6d76cbb9022ace5f44a4020a10bd5cd92107e86882bad15
BLAKE2b-256 checksum
How to use checksums
5d303af7a1073da6181208cdefe749f8243cd66e1036601bc870dfafb7fd3602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_learn-1.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.8 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5b2c5d9930ced2b7821ad936b9940706ccb5471d89b8a516bb641cec87257d1c
BLAKE2b-256 checksum
How to use checksums
f0950ea0a2412e33080a47ec02802210c008a7a540471581c95145f030d304b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL scikit_learn-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 9.3 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
dbb7831b2308c67bb6dd83c5ea3cdaf8e8cafd2de4000b93d78bb689126bd2cf
BLAKE2b-256 checksum
How to use checksums
f48f4a599b647f355d7f1e9d4470a56be1e0dc6ced84025692b35fd658eebcc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / scikit_learn-1.2.1-cp38-cp38-macosx_12_0_arm64.whl

Download URL scikit_learn-1.2.1-cp38-cp38-macosx_12_0_arm64.whl
Size 8.3 MB
Tags CPython 3.8 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
559f66e12f93b34c8c85c0a5728c3b8af98f04eb12f2c9ee18ea3c82c3d2fad1
BLAKE2b-256 checksum
How to use checksums
ed2828e75d272e4b9fdc9e9eb856f1f70e30b9c7c5c53ffef4b56e3022761ed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

Download URL scikit_learn-1.2.1-cp38-cp38-macosx_10_9_x86_64.whl
Size 9.0 MB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
dcfab6a19b236194af88771d8e6e778a60c3339248ab0018696ebf2b7c8bed4b
BLAKE2b-256 checksum
How to use checksums
6ab2fd1fd718364999a26161e2b458998f8bac9295e43ce761a5da5654fe1e78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

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

This release

1.2.1 This release

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

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