uvex_transients.phase_space.experiment.Experiment.create#

classmethod Experiment.create(sampler: Sampler, *, bounds: ArrayLike | None = None, rule: StoppingRule | None = None, campaign: CampaignSettings | None = None, seed: int = 0, **map_settings) → Experiment[source]#

Create an experiment of a sampler, with an empty map.

Parameters:
  • sampler (Sampler) – What measures a point.

  • bounds (array-like, optional) – The ranges to map, shape (ndim, 2). By default the ranges of the sampler’s space.

  • rule (StoppingRule, optional) – By default from_config() for the sampler.

  • campaign (CampaignSettings, optional) – By default CampaignSettings.from_config with seed.

  • seed (int, optional) – The root seed of the measurements, and the seed of the map.

  • **map_settings – Settings of the map (acquisition, n_candidates, floor, n_restarts, kernel).

Returns:

The experiment, not yet run.

Return type:

Experiment