mlpy.stats.models.mixture.StudentMM.score_samples

StudentMM.score_samples(x)[source]

Return the per-sample likelihood of the data under the model.

Compute the log probability of x under the model and return the posterior distribution (responsibilities) of each mixture component for each element of x.

Parameters:

x : array_like, shape (size, dim)

List of dim-dimensional data points. Each row corresponds to a single data point.

Returns:

responsibilities : array_like, shape (size, ncomponents)

Posterior probabilities of each mixture component for each observation.

loglik : array_like, shape (size,)

Log probabilities of each data point in x.