uvex_transients.phase_space.map.PhaseSpaceMap.propose#

PhaseSpaceMap.propose(batch_size: int, expected_n: Callable[[NDArray], ArrayLike]) → tuple[NDArray, float][source]#

Choose the next batch of points, fitting the model first. This is the hook that drives a campaign.

Parameters:
  • batch_size (int) – Number of points.

  • expected_n (callable) – expected_n(p) gives how many tries a point of success fraction p is expected to get, which the acquisition needs to predict the noise of a point before it is measured. A StoppingRule supplies it.

Returns:

  • points (numpy.ndarray) – The chosen points in the coordinates of the space, shape (batch_size, ndim).

  • uncertainty (float) – The largest posterior standard deviation of \(\ln(p+\epsilon)\) over the candidates, before the batch, which is what a tolerance is compared to.