baybe.surrogates.utilsΒΆ

Utilities for working with surrogates.

Functions

autoscale(cls)

Make a Surrogate class automatically scale the domain it operates on.

batchify(posterior)

Wrap Surrogate posterior functions to enable proper batching.

catch_constant_targets(cls[, std_threshold])

Make a Surrogate class robustly handle constant training targets.