brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
acquisition-controlSelect, tune, debug, and extend BayesianOptimization acquisition functions including UCB, EI, PI, Constant Liar, GPHedge, custom acquisitions, and constraint compatibility.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to choose, configure, debug, serialize, or extend acquisition functions for bayesian-optimization v3.3.x.
kappa, xi, exploration_decay, and exploration_decay_delay.suggest(...) controls such as n_random, n_smart, fit_gp, and random_state.ConstantLiar dummy suggestions.GPHedge.AcquisitionFunction subclasses and making them compatible with optimizer save_state / load_state.UtilityFunction snippets, and custom state-method failures.maximize, probe, registration, or state management beyond acquisition-specific state. Use optimizer workflows.UtilityFunction code is encountered, or custom acquisitions fail persistence.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.
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.