Open source machine learning in Python
Last verified: 2026-12-06
In short: scikit-learn is a free, open source machine learning library for Python, built on NumPy, SciPy and matplotlib and released under the BSD license. It is aimed at Python developers and data scientists who need classification, regression, clustering and preprocessing tools, and no paid starting price is listed.
What is scikit-learn?
scikit-learn is an open source machine learning library for Python. The project describes it as simple and efficient tools for predictive data analysis that are accessible to everybody and reusable in various contexts. It is built on NumPy, SciPy, and matplotlib, and is released under the BSD license, which the project describes as open source and commercially usable. The project began in 2007 as a Google Summer of Code project by David Cournapeau, and in 2010 INRIA researchers took leadership and made the first public release on February 1, 2010.
The library covers the core tasks of classical machine learning. For classification, it offers algorithms such as gradient boosting, nearest neighbors, random forest and logistic regression, used for applications like spam detection and image recognition. Regression tools such as ridge are aimed at predictions like drug response and stock prices. For clustering, it provides k-Means, HDBSCAN and hierarchical clustering, which suit customer segmentation and grouping experiment outcomes. Dimensionality reduction includes PCA, feature selection and non-negative matrix factorization. Model selection tools cover grid search, cross validation and metrics, and preprocessing covers feature extraction and normalization, including transforming text for use with machine learning algorithms.
scikit-learn has clear limits. The FAQ states that deep learning and reinforcement learning are out of scope, so teams building neural network models should look at frameworks such as TensorFlow, Keras or PyTorch. The library keeps only a simple multilayer perceptron in sklearn.neural_network and accepts only bug fixes for it. Graphical models and sequence prediction are not planned. GPU support is not enabled by default. Since 2023, a growing list of estimators can run on GPUs when given PyTorch or CuPy arrays through experimental Array API support. Using scikit-learn with PyPy is not officially supported.
Help is available through the documentation, the FAQ, Discussions, Stack Overflow, the mailing list and Discord. The maintainers ask users not to email them directly with support questions. The latest stable release at the time of the source was scikit-learn 1.9.1, and development of version 1.10 was ongoing. The library suits Python developers and data scientists who need well-established classical machine learning tools rather than deep learning.
scikit-learn key facts
| Product | scikit-learn |
|---|---|
| Made by | scikit-learn community project (INRIA holds copyright over some contributions) |
| Category | MLOps & AI Infrastructure |
| Pricing model | Open Source |
| Free trial | no |
| Platforms | Self-hosted |
| Founded | 2007 |
| Website | scikit-learn.org |
scikit-learn key features
Classification
Identifies which category an object belongs to. The project lists applications such as spam detection and image recognition. Algorithms include gradient boosting, nearest neighbors, random forest and logistic regression.
Regression
Predicts a continuous-valued attribute associated with an object. The project lists drug response and stock prices as applications. Algorithms include gradient boosting, nearest neighbors, random forest and ridge regression.
Clustering
Groups similar objects into sets automatically. The project lists customer segmentation and grouping experiment outcomes as applications. Algorithms include k-Means, HDBSCAN and hierarchical clustering.
Dimensionality reduction
Reduces the number of random variables to consider, which helps with visualization and efficiency. Algorithms include PCA, feature selection and non-negative matrix factorization.
Model selection
Compares, validates and chooses parameters and models to improve accuracy through parameter tuning. Tools include grid search, cross validation and metrics.
Preprocessing
Provides feature extraction and normalization. It transforms input data such as text so it can be used with machine learning algorithms.
Pipelines and meta-algorithms
The FAQ describes a unified API for basic machine learning tasks, with pipelines and meta-algorithms like grid search that tie the steps together.
Built on the Python scientific stack
scikit-learn is built on NumPy, SciPy and matplotlib. This means it works with the same arrays and tools many Python data users already use.
Experimental GPU support
Since 2023, a limited list of estimators can run on GPUs when inputs are PyTorch or CuPy arrays and Array API support is configured. The FAQ notes that this is experimental and not all estimators benefit.
scikit-learn pricing
Pricing model: Open Source · Free trial: no. Check the official pricing page for current prices.
scikit-learn pros and cons
Pros
- Open source under the BSD license and described by the project as commercially usable
- Covers classification, regression, clustering, dimensionality reduction, model selection and preprocessing in one library
- Built on NumPy, SciPy and matplotlib
- Large international community with active development and regular releases roughly every three months
- Offers a unified API with pipelines and grid search
Cons
- No deep learning or reinforcement learning support, which is out of scope for the project
- Only a simple multilayer perceptron is included, and it accepts only bug fixes
- No graphical models or sequence prediction planned
- GPU support is experimental and limited to a subset of estimators with PyTorch or CuPy inputs
- PyPy is not officially supported
Who should use scikit-learn?
- Python developers doing classical machine learning on tabular data
- Data scientists who need classification, regression or clustering tools
- Researchers who want a BSD-licensed library they can cite
- Teams that need commercially usable open source machine learning tools
Who might want an alternative
- Projects that need deep learning or reinforcement learning, which the FAQ points to TensorFlow, Keras or PyTorch for
- Structured prediction on arbitrary graphs or sequence models
- Users who need GPU acceleration across all estimators by default
- Teams that want to run the library on PyPy
scikit-learn use cases
- Spam detection using classification algorithms
- Customer segmentation using k-Means, HDBSCAN or hierarchical clustering
- Predicting continuous values such as drug response or stock prices with regression
- Reducing dimensionality with PCA before visualization or model training
- Tuning model parameters with grid search and cross validation
Integrations and platforms
Platforms: Self-hosted
Integrations: NumPy, SciPy, matplotlib, PyTorch arrays (experimental Array API support), CuPy arrays (experimental Array API support)
scikit-learn FAQs
What is scikit-learn?
scikit-learn is an open source machine learning library for Python. The project describes it as simple and efficient tools for predictive data analysis. It is built on NumPy, SciPy, and matplotlib.
Is scikit-learn free to use?
scikit-learn is released under the BSD license. The project describes it as open source and commercially usable. No starting price or paid plan is listed in the sources.
What is scikit-learn used for?
The library is used for classification, regression, clustering, dimensionality reduction, model selection and preprocessing. The project lists applications such as spam detection, drug response prediction, customer segmentation and feature normalization.
Does scikit-learn support deep learning?
No. The FAQ states that deep learning and reinforcement learning are out of scope for the project. It recommends frameworks such as TensorFlow, Keras and PyTorch for deep learning models.
Can scikit-learn run on a GPU?
GPU support is not enabled by default. Since 2023, a limited list of estimators can run on GPUs when given PyTorch or CuPy arrays through experimental Array API support. Not all estimators benefit.
Where can I get help with scikit-learn?
The project lists the User Guide, API reference, examples, the FAQ, Discussions, Stack Overflow, a mailing list and Discord. The maintainers ask users not to email them directly to ask for assistance.
Who maintains scikit-learn?
scikit-learn is a community project developed by contributors across the world. A maintainers team consolidates development and maintenance. It began in 2007 as a Google Summer of Code project and INRIA took leadership in 2010.
About scikit-learn community project (INRIA holds copyright over some contributions)
Vendor: scikit-learn community project (INRIA holds copyright over some contributions) · Founded: 2007 · Website: scikit-learn.org