estimator

Defines estimators which estimate a model’s ability to represent the data.

All estimators have to implement the Estimator interface.

class UnbinnedNLL(model, dataset)[source]

Bases: tensorwaves.interfaces.Estimator

Unbinned negative log likelihood estimator.

Parameters
  • model (Function) – A model that should be compared to the dataset.

  • dataset (dict) – The dataset used for the comparison. The model has to be evaluateable with this dataset.

__call__()[source]

Evaluate discrepancy.

Return type

float

gradient()[source]

Compute the gradient of the data set.

Return type

ndarray

property parameters

Get dict of parameters.

Return type

dict

update_parameters(new_parameters)[source]

Update the collection of parameters.

Parameters

new_parameters (dict) –

Return type

None