scikit-learn provides algorithms and utilities for classification, regression, clustering, and model selection in Python. It builds on NumPy and SciPy.
Overview
scikit-learn is a Python module focused on practical machine learning workflows. It bundles estimators for supervised tasks such as classification and regression, unsupervised clustering, and dimensionality reduction, plus tools to preprocess data, extract features, tune hyperparameters, and score models.
The design emphasizes consistent APIs: fit, predict, and transform patterns work across algorithms, and pipelines compose preprocessing with estimators. Plotting helpers that render learning curves and decision boundaries require Matplotlib; many examples also use pandas, seaborn, or scikit-image where noted in the docs.
Install via pip or conda after NumPy and SciPy are available. Documentation includes user guides, API reference, and examples for spam detection, customer segmentation, visualization, and other applied scenarios cited on the project site.
Key features
- Classification and regression estimators
- Clustering and dimensionality reduction
- Model selection and cross-validation
- Feature preprocessing pipelines
- Consistent estimator API
- Metrics and scoring utilities
- NumPy and SciPy integration
- Optional plotting helpers
Use cases
- Tabular predictive modeling
- Customer segmentation studies
- Feature engineering experiments
- Teaching ML fundamentals