hopsy.Mixture.compute_negative_log_likelihood#
- Mixture.compute_negative_log_likelihood(self, x)#
- deprecated:: 1.4
Use
log_density()
instead.
Computes the negative logarithm of the weighted sum of the probability density functions of the model components
\[\log f(x) = \log \sum_{i=1}^n w_i f_i(x).\]- Parameters:
x (numpy.ndarray[n, 1]) – Input vector
- Returns:
The (unnormalized) negative log-likelihood
- Return type:
float