Skip to content
Agentmart
Submit a tool

bayesian-optimization

Route BayesianOptimization package tasks for black-box Bayesian optimization, HPO, acquisition functions, constraints, typed domains, domain reduction, and…

Skill by VectorSpaceLab

IndexedMIT★ 341
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vectorspacelab-bayesian-optimization

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Route BayesianOptimization package tasks for black-box Bayesian optimization, HPO, acquisition functions, constraints, typed domains, domain reduction, and checkout maintenance.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/bayesian-optimization

What's inside

Skill name
bayesian-optimization
Description
Route BayesianOptimization package tasks for black-box Bayesian optimization, HPO, acquisition functions, constraints, typed domains, domain reduction, and checkout maintenance.
License
MIT
Metadata
disco-role: operating
Instructions
138 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (26)

  • SKILL.md
  • repo-provenance.md · references/
  • repo-routing-metadata.json · references/
  • troubleshooting.md · references/
  • check_env.py · scripts/
  • SKILL.md · sub-skills/acquisition-control/
  • api-reference.md · sub-skills/acquisition-control/references/
  • troubleshooting.md · sub-skills/acquisition-control/references/
  • workflows.md · sub-skills/acquisition-control/references/
  • acquisition_probe.py · sub-skills/acquisition-control/scripts/
  • SKILL.md · sub-skills/advanced-domain-features/
  • constraints.md · sub-skills/advanced-domain-features/references/
  • domain-reduction.md · sub-skills/advanced-domain-features/references/
  • parameter-types.md · sub-skills/advanced-domain-features/references/
  • troubleshooting.md · sub-skills/advanced-domain-features/references/
  • advanced_features_smoke.py · sub-skills/advanced-domain-features/scripts/
  • SKILL.md · sub-skills/optimizer-workflows/
  • api-reference.md · sub-skills/optimizer-workflows/references/
  • troubleshooting.md · sub-skills/optimizer-workflows/references/
  • workflows.md · sub-skills/optimizer-workflows/references/
  • bo_core_smoke.py · sub-skills/optimizer-workflows/scripts/
  • sklearn_hpo_smoke.py · sub-skills/optimizer-workflows/scripts/
  • SKILL.md · sub-skills/repo-maintenance/
  • development-workflows.md · sub-skills/repo-maintenance/references/
  • troubleshooting.md · sub-skills/repo-maintenance/references/
  • select_native_checks.py · sub-skills/repo-maintenance/scripts/

SKILL.md (first lines)

# BayesianOptimization Repo Skill

Use this repo skill when a user asks about the `bayesian-optimization` package,
its `bayes_opt` import, Gaussian-process Bayesian optimization, black-box
function maximization, small hyperparameter optimization, acquisition functions,
constraints, typed/categorical parameters, sequential domain reduction, or
maintaining this package's source checkout.

This skill is self-contained. Do not send future agents to original repository
notebooks or examples for package usage; use the bundled references and scripts
below. Checkout-only test and docs commands are confined to the maintainer
sub-skill.

## Install and import baseline

Package users normally install one of:

```bash
pip install bayesian-optimization
conda install -c conda-forge bayesian-optimization
```

Minimal import check:

```python
from bayes_opt import BayesianOptimization


def objective(x, y):
    return -x**2 - (y - 1.0) ** 2 + 1.0

optimizer = BayesianOptimization(
    f=objective,
    pbounds={"x": (-2.0, 2.0), "y": (-3.0, 3.0)},
    random_state=1,
    verbose=0,
)
optimizer.maximize(init_points=1, n_iter=1)
assert optimizer.max is not None
```

For an environment-level diagnostic, run
[`scripts/check_env.py`](scripts/check_env.py). Add `--run-subskill-smokes` when
you want it to execute the bundled tiny smoke helpers as well.

## Route map

### Core optimizer and HPO workflows

Read [`sub-skills/optimizer-workflows/SKILL.md`](sub-skills/optimizer-workflows/SKILL.md)
when the task involves:

- creating `BayesianOptimization(f=..., pbounds=...)`;
- `maximize`, `max`, `res`, `probe`, `register`, `suggest`, or `random_sample`;
- manual ask-tell loops for external evaluations;
- saving/loading JSON state, changing bounds, tuning GP parameters, or using
  `predict`;
- converting a loss into a maximization target;
- small scikit-learn HPO recipes and validation.

### Acquisition control

Read [`sub-skills/acquisition-control/SKILL.md`](sub-skills/acquisition-control/SKILL.md)
when the task involves:

- UCB, Expected Improvement, Probability of Improvement, Constant Liar, or
  GPHedge;
- choosing exploration/exploitation settings such as `kappa`, `xi`,
  `exploration_decay`, and `exploration_decay_delay`;
- lower-level acquisition `suggest(gp, target_space, n_random, n_smart, ...)`;
- asynchronous/batch-like suggestions, acquisition portfolios, or custom
  `AcquisitionFunction` subclasses;
- acquisition errors such as empty target spaces, invalid `xi`/`kappa`, stale
  `UtilityFunction` snippets, and constraint incompatibility.

### Advanced domain features

Read [`sub-skills/advanced-domain-features/SKILL.md`](sub-skills/advanced-domain-features/SKILL.md)
when the task involves:

- SciPy `NonlinearConstraint` and `ConstraintModel`;
- known constrained observations with `constraint_value`;
- integer bounds `(low, high, int)`, categorical bounds, or custom
  `BayesParameter` subclasses;
- `TargetSpace` array/dict conversion, masks, and typed kernel transforms;
- `SequentialDomainReductionTransformer`, `minimum_window`, and all-float
  domain reduction limitations.

### Repository maintenance

Read [`sub-skills/repo-maintenance/SKILL.md`](sub-skills/repo-maintenance/SKILL.md)
only when the user is editing or validating a `bayesian-optimization` source
checkout. It covers focused pytest selection, Ruff/lint commands, notebook/docs
checks, CI Python/NumPy matrix behavior, dependency markers, build validation,
and release/publish boundaries. Do not use it for ordinary package usage.

## Cross-cutting references

- [`references/troubleshooting.md`](references/troubleshooting.md): install,
  import, dependency marker, no-CLI, old API, and route-selection failures that
  cut across sub-skills.
- [`references/repo-provenance.md`](references/repo-provenance.md): source
  commit, package version, evidence paths, and refresh baseline for this skill.
- [`references/repo-routing-metadata.json`](references/repo-routing-metadata.json):
  structured metadata consumed by DisCo's managed repo-skills router importer.

## Quick decisions

- The package maximizes. If the real metric is a loss, return `-loss`.
- `pbounds` names must match objective and constraint keyword arguments.
- No GPU backend is required for selected package workflows; this is a CPU
  scientific Python package built on NumPy, SciPy, and scikit-learn.
- There is no public package CLI. Use Python APIs and bundled diagnostic
  scripts.
- Avoid old code that calls `optimizer.suggest(UtilityFunction(...))`; current
  v3.3.x optimizer-level `suggest()` takes no acquisition argument. Pass an
  acquisition instance into the optimizer constructor instead.
- Use dict parameters for clarity, especially with typed or categorical
  domains. Raw arrays follow `pbounds` insertion order and expanded internal

From VectorSpaceLab/AREX-Skill, MIT.

More from VectorSpaceLab/AREX-Skill

Signals

Stars
341
Forks
26
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)
Last release
Sep 2, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from VectorSpaceLab

Cite this page

bayesian-optimization skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-bayesian-optimization (last updated 2026-10-24)