scarlet.prior

class scarlet.prior.Prior[source]

Bases: ABC

Prior base class

A prior encodes the distribution of valid solutions for optimization parrameters.

Methods

__call__(*X)

Compute the log-likelihood of X under the prior

grad(*X)

Compute the gradients of the log-likelihood of X under the prior

abstract grad(*X)[source]

Compute the gradients of the log-likelihood of X under the prior