acquisition-control
Select, tune, debug, and extend BayesianOptimization acquisition functions including UCB, EI, PI, Constant Liar, GPHedge, custom acquisitions, and constraint compatibility.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- acquisition-control
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Select, tune, debug, and extend BayesianOptimization acquisition functions including UCB, EI, PI, Constant Liar, GPHedge, custom acquisitions, and constraint compatibility.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md9.8 KB
- 参考文档references/troubleshooting.md9.0 KB
- 参考文档references/workflows.md10.0 KB
- 脚本scripts/acquisition_probe.py8.7 KB
03 SKILL.md 正文
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, andexploration_decay_delay. - Using lower-level acquisition
suggest(...)controls such asn_random,n_smart,fit_gp, andrandom_state. - Running asynchronous ask-tell loops with
ConstantLiardummy suggestions. - Building portfolio acquisition strategies with
GPHedge. - Writing custom
AcquisitionFunctionsubclasses and making them compatible with optimizersave_state/load_state. - Diagnosing constraint compatibility, empty target-space errors, duplicate suggestions, stale
UtilityFunctionsnippets, 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
UtilityFunctioncode 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.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).