scikit-learn

scikit-learn: Build Machine Learning Models in Python

scikit-learn is a Python machine learning library built on SciPy. It helps developers and data practitioners build and evaluate machine learning workflows, with plotting support and documentation for installation and development.

View on GitHub Compare
Stars
67.5k
Forks
27.5k
Stars, last 30 days
+471

Our take

Health score

67/100

How it is scored
Activity
68
Community
94
Issues
69
Pull requests
35

+471 stars in the last 30 days

  • More contributors than 78% of the projects we track
  • Slower to merge pull requests than 91% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

68,223

Forks

27,689

Change since Nov 17, 2026: +15 stars·+2 forks

Overview

scikit-learn is a Python library for machine learning, built on SciPy. It provides a shared toolkit for applying machine learning methods to data, helping Python developers and data practitioners work within a consistent library rather than assembling every workflow from scratch.

It is a good fit for projects that use Python’s scientific computing ecosystem and need machine learning capabilities. The project also provides plotting functionality and documentation for users and contributors.

Key Features

  • Provides machine learning functionality as a Python library.
  • Builds on SciPy and depends on NumPy, joblib, threadpoolctl, and Narwhals.
  • Includes plotting functions and display classes that require Matplotlib.
  • Offers installation through pip or conda.
  • Provides stable and development documentation, a FAQ, and a changelog.
  • Includes a test suite runnable with pytest.
  • Documents contribution workflows for code, documentation, and tests.

Use Cases

  • Python developers adding machine learning capabilities to an application or data workflow.
  • Data practitioners working with Python’s scientific computing stack who want a dedicated machine learning library.
  • Users who need plotting support for machine learning results and can install Matplotlib.
  • Contributors looking to work on a mature community-maintained Python project with documented testing and contribution processes.

Getting Started

Install with pip:

pip install -U scikit-learn

See the README and installation documentation for requirements and further instructions.

Alternatives

  • TabSTAR: TabSTAR specializes in pretrained classification and regression for tabular data with text fields, rather than general-purpose machine-learning workflows.
  • ML-From-Scratch: ML-From-Scratch focuses on inspectable NumPy implementations for learning, rather than optimized tools for building and evaluating machine-learning workflows.
ProjectLanguageLicenseStarsStatus
scikit-learnPythonBSD-3-Clause67.5kNot checked yet
TabSTARPythonMIT92Maintained
ML-From-ScratchPythonMIT33kInactive

Considerations

  • The README lists Python 3.12 or newer and minimum versions for NumPy, SciPy, Narwhals, joblib, and threadpoolctl as requirements.
  • Plotting functionality requires Matplotlib. Some examples additionally require packages such as pandas, seaborn, scikit-image, or Plotly.
  • The library is distributed under the BSD 3-Clause license. Check the license terms when incorporating it into a project.
  • The repository is community-maintained. See its documentation for support channels and development guidance.

Found this useful?

Share it with someone who would like scikit-learn.

Comparisons