Installation
expected_improvement
View source best_f for a batch of points, differentiable w.r.t. x.
forward returns bar-distribution logits as [N_borders, N_samples];
after transposing, raw_space_bardist_.ei integrates the improvement
over the predicted distribution in closed form. Because the raw-space
borders are an affine rescaling of the z-normalized ones, the logits can
be used with the raw-space criterion directly and best_f is passed in
the original (unnormalized) target space.
propose_next_point
View source reg on the observations via fit_with_differentiable_input,
screens n_candidates uniform random points in [0, 1]^d with EI in
a single forward pass, then refines the top_k most promising ones by
gradient ascent on EI w.r.t. the candidate coordinates.