pygsti.extras.drift.trmodel.negloglikelihood

pygsti.extras.drift.trmodel.negloglikelihood#

negloglikelihood(trmodel, ds, minp=0, maxp=1)#

The negative loglikelihood for a TimeResolvedModel given the time-series data.

Parameters:
  • timeresolvedmodel (TimeResolvedModel) – The TimeResolvedModel to calculate the likelihood of.

  • ds (DataSet) – A DataSet, containing time-series data.

  • minp (float, optional) – Value used to smooth the 0 and 1 probability boundaries for the likelihood function. To get the extact nll, leave as 0 and 1.

  • maxp (float, optional) – Value used to smooth the 0 and 1 probability boundaries for the likelihood function. To get the extact nll, leave as 0 and 1.

Returns:

The negative loglikelihood of the model.

Return type:

float