Dataset

class gammapy.utils.fitting.Dataset[source]

Bases: abc.ABC

Dataset abstract base class.

TODO: add tutorial how to create your own dataset types.

For now, see existing examples in Gammapy how this works:

Methods Summary

likelihood(parameters[, mask]) Total likelihood (float, sum over bins).
likelihood_per_bin() Likelihood per bin given the current model parameters

Methods Documentation

likelihood(parameters, mask=None)[source]

Total likelihood (float, sum over bins).

TODO: fix interface. Remove parameters and mask, add update method?

likelihood_per_bin()[source]

Likelihood per bin given the current model parameters