mlpy.stats.dbn.hmm.HMM.score

HMM.score(obs)[source]

Compute log probability of the evidence (likelihood) under the model.

Parameters:

obs : array_like, shape (n, len, nfeatures)

Sequence of nfeatures-dimensional data points. Each row corresponds to a single point in the sequence.

Returns:

logp : float

Log likelihood of the sequence obs.