AdaptiveSamplingEngine.update
- AdaptiveSamplingEngine.update(samples: Dict[str, torch.Tensor | array], objectives: torch.Tensor | array, valid: torch.Tensor | array) None [source]
Updates the state of the sampling methods by providing the performance of the generated samples in the form of objectives and valid.
- Parameters:
samples (Dict[str, Union[torch.Tensor, np.array]]) – Points where objectives and conditions have been evaluated on.
objectives (Union[torch.Tensor, np.array]) – The performance of the generated samples according to some objective, higher the better (of type float and shape (n, 1)).
valid (Union[torch.Tensor, np.array]) – Whether the generated samples were valid or not (of type boolean and shape (n, 1))