Advanced domain features

From VectorSpaceLab/AREX-Skill · View interactive version

Advanced domain features is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use BayesianOptimization advanced domain features: constraints, typed parameters, custom parameter classes, TargetSpace conversions, and sequential domain reduction.

How to use this skill

Skill file

Advanced Domain Features

Use this sub-skill when a task involves constrained optimization, non-float

search variables, custom parameter encodings, low-level TargetSpace

conversion/debugging, or sequential domain reduction in the

bayesian-optimization package.

Route here for

multiple constraints, and registering known constrained observations.

pbounds.

conversion semantics.

Route elsewhere

predict, and ordinary HPO recipes:

CODE0

functions, Constant Liar, or GPHedge:

CODE0

release-maintenance checks:

CODE0

Start with the relevant reference

needs expensive/learned constraints, multi-output constraints, feasibility

debugging, or manual registration of constrained observations.

pbounds includes integers, categories, preconstructed parameters, or custom

domain encodings.

bounds should shrink during optimization or a bounds transformer fails.

errors mention mismatched constraint arguments, no allowed points, unsupported

constrained acquisitions, invalid categorical categories, key/dimension

mismatches, experimental non-float warnings, or domain reduction with typed

parameters.

Safe smoke check

Run CODE0

only after the package and its normal runtime dependencies are importable:

python scripts/advanced_features_smoke.py --check all

The helper is deterministic, uses no network and no plots, and validates tiny

constraint, typed-parameter, and domain-reduction behavior. Use

python scripts/advanced_features_smoke.py --help to list narrower checks.

Working rules for future agents

  1. Treat constraints and typed parameters as part of the domain definition, not

as after-the-fact filters. The optimizer wraps SciPy constraints in a

ConstraintModel, and the internal GP kernels use the TargetSpace

transform for typed domains.

  1. Keep objective and constraint keyword names identical. TargetSpace calls

both functions with the same array_to_params(...) result.

  1. For known observations in a constrained optimizer, always register the raw

constraint value with constraint_value; otherwise the target and

constraint histories cannot stay aligned.

  1. Expect a warning for non-float parameters. Integer/categorical optimization

is useful, but still marked experimental by the package.

  1. Do not combine sequential domain reduction with integer, categorical, or

custom non-FloatParameter domains in the current implementation.

  1. If a task asks both for advanced domains and acquisition strategy design,

handle the domain facts here, then route acquisition-specific choices to

the acquisition-control sub-skill.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.