Acquisition Control
Use this sub-skill when the task is to choose, configure, debug, serialize, or extend acquisition functions for bayesian-optimization v3.3.x.
Route here for
- Choosing UCB, Expected Improvement, Probability of Improvement, Constant Liar, or GPHedge.
- Tuning exploration/exploitation knobs:
kappa, xi, exploration_decay, and exploration_decay_delay.
- Using lower-level acquisition
suggest(...) controls such as n_random, n_smart, fit_gp, and random_state.
- Running asynchronous ask-tell loops with
ConstantLiar dummy suggestions.
- Building portfolio acquisition strategies with
GPHedge.
- Writing custom
AcquisitionFunction subclasses and making them compatible with optimizer save_state / load_state.
- Diagnosing constraint compatibility, empty target-space errors, duplicate suggestions, stale
UtilityFunction snippets, and custom state-method failures.
Do not use this sub-skill for
- Basic optimizer lifecycle,
maximize, probe, registration, or state management beyond acquisition-specific state. Use optimizer workflows.
- Detailed constraints, typed parameters, domain reduction, or parameter-bound transformations beyond acquisition compatibility notes. Use advanced domain features.
- Repository maintenance, tests, releases, or contribution workflows. Use repo maintenance.
Read first
- API reference for class signatures, parameter constraints, state parameters, constraint support, and common errors.
- Workflows for strategy selection, exploration tuning, Constant Liar ask-tell, GPHedge portfolios, custom acquisitions, and save/load patterns.
- Troubleshooting when suggestions fail, constraints are rejected, parameters validate incorrectly, duplicates appear, old
UtilityFunction code is encountered, or custom acquisitions fail persistence.
- Acquisition probe script for a deterministic tiny check that compares built-in acquisition suggestions and optionally exercises Constant Liar and GPHedge.
Minimal setup snippets
from bayes_opt import BayesianOptimization, acquisition
optimizer = BayesianOptimization(
f=None,
pbounds={"x": (-2.0, 4.0)},
acquisition_function=acquisition.UpperConfidenceBound(kappa=2.576),
random_state=7,
verbose=0,
)
# Seed observations before acquisition-driven suggestions.
optimizer.register({"x": -1.0}, target=-4.29)
optimizer.register({"x": 0.0}, target=-0.69)
optimizer.register({"x": 2.5}, target=-0.44)
next_point = optimizer.suggest()
If no acquisition_function is passed, BayesianOptimization chooses UCB for unconstrained problems and Expected Improvement for constrained problems. The optimizer-level suggest() method returns a random point while the target space is empty; lower-level acquisition suggest(...) requires at least one registered observation.
Quick validation
After installing bayesian-optimization with its normal dependencies, run:
python scripts/acquisition_probe.py --help
python scripts/acquisition_probe.py --include-constant-liar --include-gphedge
The script performs no network access, no plotting, and no writes. It prints concise PASS lines after validating that suggested points remain inside bounds.
1---2name: acquisition-control3description: "Select, tune, debug, and extend BayesianOptimization acquisition4 functions including UCB, EI, PI, Constant Liar, GPHedge, custom acquisitions,5 and constraint compatibility."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/acquisition-control9 disco-role: operating10license: MIT11---1213# Acquisition Control1415Use this sub-skill when the task is to choose, configure, debug, serialize, or extend acquisition functions for `bayesian-optimization` v3.3.x.1617## Route here for1819- Choosing UCB, Expected Improvement, Probability of Improvement, Constant Liar, or GPHedge.20- Tuning exploration/exploitation knobs: `kappa`, `xi`, `exploration_decay`, and `exploration_decay_delay`.21- Using lower-level acquisition `suggest(...)` controls such as `n_random`, `n_smart`, `fit_gp`, and `random_state`.22- Running asynchronous ask-tell loops with `ConstantLiar` dummy suggestions.23- Building portfolio acquisition strategies with `GPHedge`.24- Writing custom `AcquisitionFunction` subclasses and making them compatible with optimizer `save_state` / `load_state`.25- Diagnosing constraint compatibility, empty target-space errors, duplicate suggestions, stale `UtilityFunction` snippets, and custom state-method failures.2627## Do not use this sub-skill for2829- Basic optimizer lifecycle, `maximize`, `probe`, registration, or state management beyond acquisition-specific state. Use [optimizer workflows](../optimizer-workflows/SKILL.md).30- Detailed constraints, typed parameters, domain reduction, or parameter-bound transformations beyond acquisition compatibility notes. Use [advanced domain features](../advanced-domain-features/SKILL.md).31- Repository maintenance, tests, releases, or contribution workflows. Use [repo maintenance](../repo-maintenance/SKILL.md).3233## Read first34351. [API reference](references/api-reference.md) for class signatures, parameter constraints, state parameters, constraint support, and common errors.362. [Workflows](references/workflows.md) for strategy selection, exploration tuning, Constant Liar ask-tell, GPHedge portfolios, custom acquisitions, and save/load patterns.373. [Troubleshooting](references/troubleshooting.md) when suggestions fail, constraints are rejected, parameters validate incorrectly, duplicates appear, old `UtilityFunction` code is encountered, or custom acquisitions fail persistence.384. [Acquisition probe script](scripts/acquisition_probe.py) for a deterministic tiny check that compares built-in acquisition suggestions and optionally exercises Constant Liar and GPHedge.3940## Minimal setup snippets4142```python43from bayes_opt import BayesianOptimization, acquisition4445optimizer = BayesianOptimization(46 f=None,47 pbounds={"x": (-2.0, 4.0)},48 acquisition_function=acquisition.UpperConfidenceBound(kappa=2.576),49 random_state=7,50 verbose=0,51)5253# Seed observations before acquisition-driven suggestions.54optimizer.register({"x": -1.0}, target=-4.29)55optimizer.register({"x": 0.0}, target=-0.69)56optimizer.register({"x": 2.5}, target=-0.44)57next_point = optimizer.suggest()58```5960If no `acquisition_function` is passed, `BayesianOptimization` chooses UCB for unconstrained problems and Expected Improvement for constrained problems. The optimizer-level `suggest()` method returns a random point while the target space is empty; lower-level acquisition `suggest(...)` requires at least one registered observation.6162## Quick validation6364After installing `bayesian-optimization` with its normal dependencies, run:6566```bash67python scripts/acquisition_probe.py --help68python scripts/acquisition_probe.py --include-constant-liar --include-gphedge69```7071The script performs no network access, no plotting, and no writes. It prints concise `PASS` lines after validating that suggested points remain inside bounds.