estimator¶
Defines estimators which estimate a model’s ability to represent the data.
All estimators have to implement the Estimator
interface.
-
class
UnbinnedNLL
(model: tensorwaves.interfaces.Function, dataset: dict, phsp_set: dict)[source]¶ Bases:
tensorwaves.interfaces.Estimator
Unbinned negative log likelihood estimator.
- Parameters
model – A model that should be compared to the dataset.
dataset – The dataset used for the comparison. The model has to be evaluateable with this dataset.
phsp_set – A phase space dataset, which is used for the normalization. The model has to be evaluateable with this dataset. When correcting for the detector efficiency use a phase space sample, that passed the detector reconstruction.
-
gradient
() → numpy.ndarray[source]¶ Compute the gradient of the data set.