GaussianMixture.score

GaussianMixture.score(data)[source]

Computes the average negative log-likelihood (NLL) of the provided datapoints.

Parameters:

data (Union[ndarray[Any, dtype[float32]], Tensor]) -- The datapoints for which to evaluate the NLL.

Return type:

float

Returns:

The average NLL of all datapoints.

Note

See score_samples() to obtain NLL values for individual datapoints.