uvex_transients.phase_space.experiment.Experiment.run#

Experiment.run(*, map_fn: ~collections.abc.Callable = <class 'map'>, callback: ~collections.abc.Callable[[~uvex_transients.phase_space.map.PhaseSpaceMap], None] | None = None) → Experiment[source]#

Run the campaign, adding points to the map until its budget is spent or it is converged.

Parameters:
  • map_fn (callable, optional) – map_fn(function, tasks) returning the results in order, to measure a batch in parallel.

  • callback (callable, optional) – Called with the map after the initial design and after every batch, for example to save a checkpoint.

Returns:

This experiment, so that experiment.run().grid_table() works.

Return type:

Experiment