boax.core.objectives module#

Implements functionalities to construct objective functions.

boax.core.objectives#

Objective Types#

class boax.core.objectives.Objective(*args, **kwargs)#

A callable type for objectives.

An objective function takes a posterior prediction of type T and an array of targets as input and returns an objective value.

Objectives#

Common Objectives#

negative_log_likelihood(logpdf_fn)

The negative log likelihood objective function.

boax.core.objectives.transformations#

Transformations#

Transformed Objectives#

penalized(objective, *terms)

Adds penalty terms to an objective function.