Go to file
Loïc Estève fba028b07e
CI Use sys.monitoring with coverage to speed-up Python >= 3.12 builds (#29473)
2024-12-02 18:07:40 +01:00
.binder DOC fix jupyterlab and binder could not find `polars` (#28457) 2024-02-19 10:18:37 +01:00
.circleci MAINT Pin the ruff version on CI linters (#29359) 2024-06-28 08:49:20 +02:00
.github Bump the actions group with 2 updates (#30379) 2024-12-02 16:28:22 +01:00
.spin ENH Add minimal support for spin as a developer tool (#29012) 2024-07-22 11:03:14 +02:00
asv_benchmarks BENCH Don't use setuptools based build commands (#29500) 2024-07-16 14:16:58 +02:00
benchmarks MAINT|API Clean up deprecations for 1.6: SAMME.R in AdaBoost and deprecate algorithm (#29997) 2024-10-08 22:15:43 +02:00
build_tools CI Use sys.monitoring with coverage to speed-up Python >= 3.12 builds (#29473) 2024-12-02 18:07:40 +01:00
doc Remove reference to is_transformer (#30374) 2024-11-29 18:42:16 +00:00
examples DOC fix xlabel in Tweedie regression on insurance claims (#30362) 2024-11-29 15:05:19 +01:00
maint_tools ENH remove _xfail_checks, pass directly to check runners, return structured output from check_estimator (#30149) 2024-11-08 16:28:02 +00:00
sklearn ENH Reduce redundancy in floating type checks for Array API support in `_regression.py` (#30128) 2024-12-02 15:11:07 +05:00
.cirrus.star CI Only run arm tests nightly (#26996) 2023-08-08 07:59:50 +02:00
.codecov.yml BLD Remove support for setuptools build (#29400) 2024-07-11 08:34:46 +02:00
.coveragerc CI Use sys.monitoring with coverage to speed-up Python >= 3.12 builds (#29473) 2024-12-02 18:07:40 +01:00
.git-blame-ignore-revs MNT git ignore black upgrade (#28812) 2024-04-11 15:11:08 -04:00
.gitattributes CI Use check-sdist to check sdist rather than check-manifest (#28757) 2024-04-09 09:00:01 -04:00
.gitignore MAINT Add notes-towncrier.rst to .gitignore (#30153) 2024-10-29 14:47:53 +01:00
.mailmap Fix mailmap format (#9620) 2017-08-24 21:24:36 +10:00
.pre-commit-config.yaml MNT Add author/license note where missing and add the linter (#29477) 2024-07-22 22:05:03 +02:00
CITATION.cff DOC Add CITATION.cff (#29581) 2024-08-20 14:43:22 +00:00
CODE_OF_CONDUCT.md DOC minor improvements in CODE_OF_CONDUCT.md file (#18188) 2020-08-25 08:55:07 +02:00
CONTRIBUTING.md MAINT make sure canonical link is https://scikit-learn.org (#28487) 2024-02-20 17:11:48 +00:00
COPYING DOC update license year to 2024 (#28798) 2024-04-10 06:04:57 +00:00
Makefile BLD Check build dependencies in meson.build (#28721) 2024-07-15 14:34:09 +02:00
README.rst DOC Add link to Bluesky in social media sections (#30365) 2024-11-29 06:18:26 +00:00
SECURITY.md MAINT update SECURITY.md for 1.5.2 release (#29840) 2024-09-13 15:50:51 +00:00
azure-pipelines.yml CI Use conda for free threaded build (#30312) 2024-11-20 19:53:45 +01:00
meson.build BLD Remove confusing default Meson buildtype (#29594) 2024-08-10 09:55:44 -04:00
pyproject.toml MAINT bump version from 1.6.dev0 to 1.7.dev0 (#30246) 2024-11-12 11:57:16 +01:00
setup.cfg MAINT Remove unused check-manifest config (#29561) 2024-07-25 14:45:53 -04:00

README.rst

.. -*- mode: rst -*-

|Azure| |CirrusCI| |Codecov| |CircleCI| |Nightly wheels| |Black| |PythonVersion| |PyPi| |DOI| |Benchmark|

.. |Azure| image:: https://dev.azure.com/scikit-learn/scikit-learn/_apis/build/status/scikit-learn.scikit-learn?branchName=main
   :target: https://dev.azure.com/scikit-learn/scikit-learn/_build/latest?definitionId=1&branchName=main

.. |CircleCI| image:: https://circleci.com/gh/scikit-learn/scikit-learn/tree/main.svg?style=shield
   :target: https://circleci.com/gh/scikit-learn/scikit-learn

.. |CirrusCI| image:: https://img.shields.io/cirrus/github/scikit-learn/scikit-learn/main?label=Cirrus%20CI
   :target: https://cirrus-ci.com/github/scikit-learn/scikit-learn/main

.. |Codecov| image:: https://codecov.io/gh/scikit-learn/scikit-learn/branch/main/graph/badge.svg?token=Pk8G9gg3y9
   :target: https://codecov.io/gh/scikit-learn/scikit-learn

.. |Nightly wheels| image:: https://github.com/scikit-learn/scikit-learn/workflows/Wheel%20builder/badge.svg?event=schedule
   :target: https://github.com/scikit-learn/scikit-learn/actions?query=workflow%3A%22Wheel+builder%22+event%3Aschedule

.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/scikit-learn.svg
   :target: https://pypi.org/project/scikit-learn/

.. |PyPi| image:: https://img.shields.io/pypi/v/scikit-learn
   :target: https://pypi.org/project/scikit-learn

.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black

.. |DOI| image:: https://zenodo.org/badge/21369/scikit-learn/scikit-learn.svg
   :target: https://zenodo.org/badge/latestdoi/21369/scikit-learn/scikit-learn

.. |Benchmark| image:: https://img.shields.io/badge/Benchmarked%20by-asv-blue
   :target: https://scikit-learn.org/scikit-learn-benchmarks

.. |PythonMinVersion| replace:: 3.9
.. |NumPyMinVersion| replace:: 1.19.5
.. |SciPyMinVersion| replace:: 1.6.0
.. |JoblibMinVersion| replace:: 1.2.0
.. |ThreadpoolctlMinVersion| replace:: 3.1.0
.. |MatplotlibMinVersion| replace:: 3.3.4
.. |Scikit-ImageMinVersion| replace:: 0.17.2
.. |PandasMinVersion| replace:: 1.1.5
.. |SeabornMinVersion| replace:: 0.9.0
.. |PytestMinVersion| replace:: 7.1.2
.. |PlotlyMinVersion| replace:: 5.14.0

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

**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 <https://scikit-learn.org/dev/about.html#authors>`__ 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 (>= |PythonMinVersion|)
- NumPy (>= |NumPyMinVersion|)
- SciPy (>= |SciPyMinVersion|)
- joblib (>= |JoblibMinVersion|)
- threadpoolctl (>= |ThreadpoolctlMinVersion|)

=======

**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 (>= |MatplotlibMinVersion|).
For running the examples Matplotlib >= |MatplotlibMinVersion| is required.
A few examples require scikit-image >= |Scikit-ImageMinVersion|, a few examples
require pandas >= |PandasMinVersion|, some examples require seaborn >=
|SeabornMinVersion| and plotly >= |PlotlyMinVersion|.

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 <https://scikit-learn.org/stable/install.html>`_.


Changelog
---------

See the `changelog <https://scikit-learn.org/dev/whats_new.html>`__
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 <https://scikit-learn.org/stable/developers/index.html>`_
has detailed information about contributing code, documentation, tests, and
more. We've included some basic information in this README.

Important links
~~~~~~~~~~~~~~~

- Official source code repo: https://github.com/scikit-learn/scikit-learn
- Download releases: https://pypi.org/project/scikit-learn/
- Issue tracker: https://github.com/scikit-learn/scikit-learn/issues

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
<https://scikit-learn.org/dev/developers/contributing.html>`_.

Testing
~~~~~~~

After installation, you can launch the test suite from outside the source
directory (you will need to have ``pytest`` >= |PyTestMinVersion| 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 <https://scikit-learn.org/dev/about.html#authors>`__ 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
~~~~~~~~~~~~~

- HTML documentation (stable release): https://scikit-learn.org
- HTML documentation (development version): https://scikit-learn.org/dev/
- FAQ: https://scikit-learn.org/stable/faq.html

Communication
~~~~~~~~~~~~~

- Mailing list: https://mail.python.org/mailman/listinfo/scikit-learn
- Logos & Branding: https://github.com/scikit-learn/scikit-learn/tree/main/doc/logos
- Blog: https://blog.scikit-learn.org
- Calendar: https://blog.scikit-learn.org/calendar/
- Twitter: https://twitter.com/scikit_learn
- Stack Overflow: https://stackoverflow.com/questions/tagged/scikit-learn
- GitHub Discussions: https://github.com/scikit-learn/scikit-learn/discussions
- Website: https://scikit-learn.org
- LinkedIn: https://www.linkedin.com/company/scikit-learn
- Bluesky: https://bsky.app/profile/scikit-learn.org
- YouTube: https://www.youtube.com/channel/UCJosFjYm0ZYVUARxuOZqnnw/playlists
- Facebook: https://www.facebook.com/scikitlearnofficial/
- Instagram: https://www.instagram.com/scikitlearnofficial/
- TikTok: https://www.tiktok.com/@scikit.learn
- Mastodon: https://mastodon.social/@sklearn@fosstodon.org
- Discord: https://discord.gg/h9qyrK8Jc8


Citation
~~~~~~~~

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