Skip to content

v0.2.3

Latest

Choose a tag to compare

@maxencefaldor maxencefaldor released this 04 Sep 19:01

Changed behavior

  • clip_x is gone from BBOBProblem. It clipped x into the search box before evaluating, which computed the boundary penalty at the clipped point and so switched the penalty off for the functions that penalize x directly. BBOB is defined on all of R^D and handles the boundary with an in-function penalty; x is now evaluated as given. The default was clip_x=False, so results are unchanged unless you set it.
  • Each descriptor knob lives on the family that uses it. beta, num_levels, bandwidth and alignment are constructor arguments of IrregularProjection, QuantizedProjection, FourierProjection and AlignedProjection respectively, rather than shared fields. A family whose constraint involves the problem raises from sample, and that is now documented.
  • Six zip() calls pass strict=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. The dev and docs sets are dependency groups now, so they no longer reach PyPI as bbobax[dev] or bbobax[docs].

Internal

  • BBOBParams and BBOBEval subclass flax.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.