Repository navigation
Releases
v0.2.3
Changed behavior
clip_xis gone fromBBOBProblem. It clippedxinto the search box before evaluating, which computed the boundary penalty at the clipped point and so switched the penalty off for the functions that penalizexdirectly. BBOB is defined on all of R^D and handles the boundary with an in-function penalty;xis now evaluated as given. The default wasclip_x=False, so results are unchanged unless you set it.- Each descriptor knob lives on the family that uses it.
beta,num_levels,bandwidthandalignmentare constructor arguments ofIrregularProjection,QuantizedProjection,FourierProjectionandAlignedProjectionrespectively, rather than shared fields. A family whose constraint involves the problem raises fromsample, and that is now documented. - Six
zip()calls passstrict=True, where the lengths are equal by construction. A mismatch would raise instead of truncating silently.
Packaging
- Only
bbobax[notebooks]remains a published extra, the one a user installs. Thedevanddocssets are dependency groups now, so they no longer reach PyPI asbbobax[dev]orbbobax[docs].
Internal
BBOBParamsandBBOBEvalsubclassflax.struct.PyTreeNode; the pytree behavior is the same.- The code and the markdown move to one toolchain: ruff at its defaults (4 spaces, 88 columns) under the Google docstring convention, rumdl for the markdown, and an
.editorconfig. CI checks the markdown beside ruff and ty.
The alignment tests against the vendored official implementation pass unchanged on Python 3.11 through 3.14.
v0.2.2
The descriptor families now carry a name, and DESCRIPTORS registers them — the parallel of BBOB_PROBLEMS and NOISE_MODELS, so a recorded config can name a descriptor the way it names a function. Supersedes 0.2.1, which shipped the same functionality from a commit one type-annotation fix behind CI.
v0.2.1
Small addition for downstream labs: the descriptor families now carry a name, and DESCRIPTORS registers them — the parallel of BBOB_PROBLEMS and NOISE_MODELS, so a recorded config can name a descriptor the way it names a function.
v0.2.0
Verified against official BBOB, and rebuilt around how COCO defines a problem.
This release changes both the API and the numbers. Several functions were
wrong, so no result from 0.1.0 is comparable to one from 0.2.0.
Fixed — alignment with official BBOB
Every function and noise model is now checked numerically against the official
2009 implementation on identical instances (tests/test_alignment.py), which
found four real defects in the functions:
bueche_rastriginskewed the wrong half of the coordinates. The paper's
1-based "i odd" is 0-based even, as both official implementations have it.step_ellipsoidalcarried an extra factor of 100 on the ellipsoid sum,
so values ran ~98x high and the plateau branch almost never selected.gallagher_101_me/gallagher_21_hiderived their peak layout from
fold_in(key, q[0, 0]), which int-casts the float; every rotated instance
shared one frozen layout. Layouts now come from the instance's own key.katsuuratruncated its inner sum at 30 terms instead of 32.
and three in the noise models, against the noisy-functions paper:
- Cauchy noise divided by
|Uniform(0, 1)|rather than|N(0, 1)|, giving
~30% heavier tails and the wrong central law. - Uniform noise used an epsilon of 1e-8 where the paper specifies 1e-99,
distorting the ratio by up to 2x in the 1e-8 target-precision band. - Uniform noise dropped the paper's
(0.49 + 1/D)dimension term from
alpha, so its severity did not vary with the dimension.
Fixed — noise stabilization was optional, and off
In official BBOB the +1.01 * 1e-8 offset and below-tolerance passthrough are
inside fGauss, fUniform and fCauchy, applied unconditionally. bbobax
had them behind a flag defaulting to False, so every noisy model was
missing them unless you knew to ask. They are now part of the three official
models and cannot be switched off.
Fixed — the noise epsilons were zero in float32
The uniform and Cauchy models divide by a quantity that can be zero, and the
paper guards each with a literal (1e-99, 1e-199). Both round to exactly
0.0 in float32 — JAX's default — so neither guarded anything. The guard is
now the smallest positive normal of the working dtype.
Changed — a problem is an object
BBOB(fn_id=..., min_num_dims=..., max_num_dims=...)becomes one class per
function:Sphere(num_dims=10). A problem is one function at one
dimension, as COCO enumerates them, andbbobax.DIMENSIONSrecords COCO's
own set(2, 3, 5, 10, 20, 40).- Instance generation is per function.
params.x_optis always the true
argmin:linear_slopeis minimized on a corner of the box,schwefeland
lunacekare built around fixed constants,bueche_rastriginforces its
skewed coordinates non-negative. BBOBStateis gone. All 24 functions are memoryless:
evaluate(key, x, params) -> BBOBEval.lax.switchis gone, for functions and for noise models: undervmap
with a varying branch it evaluated every branch for every solution.- A noise model is an object too, held by a problem rather than switched on:
Sphere(noise_model=Gaussian()). - The PRNG key comes first in every signature, as
jax.randomhas it.
Added — the suites
bbob_suite()— the 24 standard noiseless functions.bbob_noisy_suite()— f101–f130. Not "the 24 plus noise": boundary
handling is uniform at factor 100, each problem is pinned to one of the
paper's two severities, and two of the bases are reparameterized (f116–f118
use conditioning 1e4 where f10 has 1e6; f125–f127 scale by 1 where f19 uses
10) — all read out of the vendored reference rather than assumed.ManyAffine— MA-BBOB, all 24 blended under a sparse weight vector in
log space, turning the suite from 24 atoms into a continuous space of
problems. Measured at 0.92x the cost of the 24 run separately at D=10.
A suite is a plain dict[str, BBOBProblem], so composing your own is a dict
comprehension.
Added — Quality-Diversity, rebuilt
Quality-Diversity is composed, not inherited: QDProblem(problem, descriptor)
pairs any function with any descriptor. Six descriptor families now span the
phenomena of real genotype-to-behavior maps, built from the same
transformations the functions themselves are built from:
RandomProjection (smooth baseline), IrregularProjection (non-uniform
sensitivity), QuantizedProjection (discontinuity), FourierProjection
(arbitrary sensitivity, Lipschitz constant as a dial), SubsetProjection
(redundancy), AlignedProjection (fitness–behavior conflict).
Descriptor space is [-1, 1]^k by construction, the way COCO's search
space is [-5, 5]^D — so problem.descriptor_range is exact, and the archive
bounds every QD algorithm needs no longer have to be guessed. Whether an
algorithm is told the bounds is the experiment's choice, which is what lets
bounds-free methods be compared honestly against bounds-given ones.
And for Sphere under a linear descriptor, sphere_descriptor_optimum gives
the exact best fitness achievable at any descriptor value, in closed form —
the per-cell ground truth QD-score normalization has always lacked.
Added — the notebooks
Six tutorials, executed in CI so they cannot drift: the contract, the suites,
optimizing one problem, benchmarking across the suite with COCO's ECDF over
its own 51 target precisions, meta-learning a component over the suite, and
Quality-Diversity.
Removed
- The
Additivenoise model. It applied noise at an absolute scale to
functions whose values span eight orders of magnitude, so its parameter meant
something different on every one of the 24. types.py— each module owns its own types.
Tooling
ty replaces mypy. CI runs ruff, ty, 388 tests on Python 3.11–3.14, and
executes every notebook.