AbstractTerm
- class pmrf.terms.AbstractTerm
Bases:
ModuleAbstract base class for callables that evaluate a model.
Terms are the summands of a
pmrf.SummedTerms. An evaluator takes both a model and a frequency, whereas a term takes only a model, having already resolved the frequency that it needs.Inheriting from this class is optional. Any callable that accepts a model is a valid term, meaning that a once-off penalty can simply be written as a function.