- class probnum.quad.solvers.policies.RandomMaxAcquisitionPolicy(batch_size, acquisition_func, n_candidates)¶
Policy that maximizes an acquisition function by sampling random candidate nodes.
The candidate nodes are random draws from the integration measure. The node with the largest acquisition value is chosen.
batch_size (IntLike) – Size of batch of nodes when calling the policy once (must be equal to 1).
acquisition_func (AcquisitionFunction) – The acquisition function.
n_candidates (IntLike) – The number of candidate nodes.
ValueError – If
batch_sizeis not 1, or if
n_candidatesis too small.
Whether the policy requires a random number generator when called.
Find nodes according to the policy.