pytomography.callbacks.likelihood#

Module Contents#

Classes#

LogLikelihoodCallback

Computes the log-liklihood \(\sum \left(g\log(Hf) - Hf - \beta V(f) \right)\) after a given iteration.

class pytomography.callbacks.likelihood.LogLikelihoodCallback(projections, system_matrix, prior=None)[source]#

Bases: pytomography.callbacks.callback.Callback

Computes the log-liklihood \(\sum \left(g\log(Hf) - Hf - \beta V(f) \right)\) after a given iteration.

Parameters:
  • projections (torch.tensor) – Data corresponding to measured projections

  • system_matrix (SystemMatrix) – System matrix of imaging system.

  • prior (Prior, optional) – Prior used in Bayesian algorithm. Defaults to None.

run(object, n_iter)[source]#

Method used to compute the log liklihood

Parameters:
  • object (torch.tensor) – Object on which the liklihood is computed

  • n_iter (int) – Iteration number