trieste.objectives.utils
#
This module contains functions convenient for creating Observer
objects that return data
from objective functions, appropriately formatted for usage with the toolbox.
Module Contents#
-
mk_observer
(objective: collections.abc.Callable[[trieste.types.TensorType], trieste.types.TensorType]) → trieste.observer.SingleObserver[source]# -
mk_observer
(objective: collections.abc.Callable[[trieste.types.TensorType], trieste.types.TensorType], key: trieste.types.Tag) → trieste.observer.MultiObserver - Parameters
objective – An objective function designed to be used with a single data set and model.
key – An optional key to use to access the data from the observer result.
- Returns
An observer returning the data from
objective
.
-
mk_multi_observer
(**kwargs: collections.abc.Callable[[trieste.types.TensorType], trieste.types.TensorType]) → trieste.observer.MultiObserver[source]# - Parameters
kwargs – Observation functions.
- Returns
An multi-observer returning the data from
kwargs
.