Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

Optuna

Python framework for automated hyperparameter optimization and neural architecture search.

ML and data science PyPI

Used in agent projects
20
0.2% of 12,697 public repos built with AI coding agents
Rank in ml and data science
#28 of 28
by use in those projects
Downloads
3.1M
PyPI, last 7 days, optuna
GitHub stars
14.9K
last push Oct 10, 2026

How Optuna is used

Optuna is a dependency in 20 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #28 of 28 in ml and data science. The most used alternative there is NumPy. Projects that use it most often also use pytest (90.0%), NumPy (85.0%), pandas (85.0%).

Often used with Optuna

pytest90.0% of Optuna projects · 34.6× more than average
NumPy85.0% of Optuna projects · 22.2× more than average
pandas85.0% of Optuna projects · 28.2× more than average
Pydantic80.0% of Optuna projects · 15.7× more than average
scikit-learn80.0% of Optuna projects · 63.5× more than average
Requests65.0% of Optuna projects · 12.2× more than average
PyArrow60.0% of Optuna projects · 127.0× more than average
PyYAML60.0% of Optuna projects · 19.8× more than average

By coding agent

Claude Code0.4% of projects set up for it
GitHub Copilot0.5% of projects set up for it
Cursor0.3% of projects set up for it

Share of public repos configured for each agent that list Optuna as a dependency.

Install

Packagepip install optuna
Main stacksPython (19), Next.js (1)
Example projectskr8tiv-ai/Jarvis, synapticore-io/marimo-flow, nihilistau/CosySim, StableExo/TheWarden

Alternatives to Optuna

All ml and data science

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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 —
scikit-learn pypi
Python machine learning library with classification, regression and clustering algorithms.
160 (1.3%) 44.3M 67.5K —
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 —
Is Optuna right for your project? Ask AgentGid →