pygsti.extras.drift.probtrajectory.probsdict_negloglikelihood

pygsti.extras.drift.probtrajectory.probsdict_negloglikelihood#

probsdict_negloglikelihood(probs, clickstreams, minp=0.0, maxp=1.0)#

The negative log-likelihood of varying probabilities probs, evaluated for the data streams in clickstreams.

Parameters:
  • probs (dict) – A dictionary where the keys are the outcome strings in the clickstream (its keys) and the value for an outcome is the time-dependent probability list for that outcome, at the times associated with the data in the clickstreams.

  • clickstreams (dict) – A dictionary where the keys are the different measurement outcomes, and the values are lists that give counts for that measurement outcome.

Returns:

The negative logi-likelihood of the probability trajectories given the clickstream data.

Return type:

float