Skip to content
Back to skills

Optuna Bayesian Optimization Starter

ASecurity

Use this skill to run a deterministic Optuna optimization loop on a small synthetic objective and inspect the best trial summary.

  • 38 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill optuna-bayesian-optimization-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Optuna Bayesian Optimization Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Optuna Bayesian Optimization Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-optuna-bayesian-optimization-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-optuna-bayesian-optimization-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Optuna Bayesian Optimization Starter

Use this skill to run a deterministic Optuna optimization loop on a small synthetic objective and inspect the best trial summary.

## What This Skill Does

- defines a two-parameter toy objective
- optimizes it with Optuna's TPE sampler
- records the best trial, best parameters, and a short ranked trial table

## When To Use It

- when you need a runnable `bayesian-optimization` starter
- when you want a local Optuna example before wiring in an expensive scientific objective
- when you need deterministic optimization outputs for repository tests

## Run

```bash
./slurm/envs/statistics/bin/python skills/statistical-and-machine-learning-foundations-for-science/optuna-bayesian-optimization-starter/scripts/run_optuna_bayesian_optimization.py --out scratch/optuna/bayesian_optimization_summary.json
```

## Notes

- The objective is synthetic and smooth on purpose; it exists to verify the optimization loop, not to benchmark samplers.
- Increase the trial budget only after replacing the toy objective with a real scientific function.

Files in this skill

  • SKILL.md1.1 KB
  • assets/optuna_bayesian_optimization_summary.json982 B
  • examples/README.md87 B
  • metadata.yaml1.4 KB
  • refs.md249 B
  • scripts/run_optuna_bayesian_optimization.py2.5 KB
  • tests/test_run_optuna_bayesian_optimization.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.