hydromodpy.calibration.adapters.cma_adapter#

CMA-ES optimizer adapter backed by the cma package.

The adapter runs the CMA-ES search in the transformed parameter space exposed by ParameterSpace and optionally normalises the search domain into the unit cube.

The ask/tell contract:

  • ask(n) returns up to n points from the current CMA-ES batch (next batch is drawn lazily when the previous one is fully scored).

  • tell(results) writes costs into the current-batch slot; once every slot is filled, the adapter feeds the batch back to CMA and resets.

CMA generates popsize points, all points are scored, CMA updates, repeat.

Classes

CmaEsAdapter(space, *[, sigma0, popsize, ...])

Adapter for the cma package's CMA-ES strategy.