scikit-learn
Python machine learning library with classification, regression and clustering algorithms.
ML and data science PyPI
Used in agent projects
160
1.3% of 12,697 public repos built with AI coding agents
Rank in ml and data science
#3 of 28
by use in those projects
Downloads
44.3M
PyPI, last 7 days, scikit-learn
GitHub stars
67.5K
last push Oct 10, 2026
How scikit-learn is used
scikit-learn is a dependency in 160 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.3%), #3 of 28 in ml and data science. The most used alternative there is NumPy. Projects that use it most often also use NumPy (89.4%), pandas (79.4%), python-dotenv (56.2%).
Often used with scikit-learn
| NumPy | 89.4% of scikit-learn projects · 23.3× more than average |
|---|---|
| pandas | 79.4% of scikit-learn projects · 26.3× more than average |
| python-dotenv | 56.2% of scikit-learn projects · 8.6× more than average |
| Pydantic | 54.4% of scikit-learn projects · 10.6× more than average |
| SciPy | 50.0% of scikit-learn projects · 45.0× more than average |
| FastAPI | 48.1% of scikit-learn projects · 11.4× more than average |
| Requests | 48.1% of scikit-learn projects · 9.1× more than average |
| Matplotlib | 46.9% of scikit-learn projects · 30.7× more than average |
By coding agent
| GitHub Copilot | 2.2% of projects set up for it |
|---|---|
| Claude Code | 1.9% of projects set up for it |
| Cursor | 2.1% of projects set up for it |
| Devin Desktop | 2.9% of projects set up for it |
| OpenAI Codex | 1.3% of projects set up for it |
Share of public repos configured for each agent that list scikit-learn as a dependency.
Install
| Package | pip install scikit-learn |
|---|---|
| Main stacks | Python (157), Next.js (3) |
| Example projects | owid/etl, jacwu/github-materials, towardsai/agentic-ai-engineering-course, Llaminar/llaminar, mikegianfelice/Hunter |
Alternatives to scikit-learn
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| NumPy pypi Fundamental Python library for numerical computing with arrays and matrices. |
487 (3.8%) | 21M | 33K | — |
| pandas pypi Data manipulation and analysis library with DataFrames for structured data. |
383 (3.0%) | 143M | 50K | — |
| SciPy pypi Fundamental algorithms for scientific computing with optimized numerical routines. |
141 (1.1%) | 72.2M | 15.1K | — |
| PyTorch pypi Deep learning framework with tensors and dynamic neural networks with GPU support. |
109 (0.9%) | 13.2M | 104K | — |
| Sentence Transformers pypi Pre-trained models for semantic embeddings, retrieval and reranking. |
83 (0.7%) | 5.1M | 19.2K | — |
| Hugging Face Transformers pypi State-of-the-art NLP and multimodal models for inference and training. |
80 (0.6%) | 24.8M | 167K | Apache 2.0 License |
| NetworkX pypi Python package for creating, analyzing and manipulating complex networks and graphs. |
73 (0.6%) | 50.2M | 17.3K | — |
| joblib pypi Lightweight pipelining and parallel computing for Python functions with caching support. |
65 (0.5%) | 38.7M | 4,403 | — |