Skip to content

Commit

Permalink
Revert "Make previous commit work also with old versions of scipy."
Browse files Browse the repository at this point in the history
This reverts commit e8d32c6.
  • Loading branch information
Fabian Pedregosa committed Oct 20, 2010
1 parent c7248c8 commit 3fab72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scikits/learn/gmm.py
Expand Up @@ -571,7 +571,7 @@ def _lmvnpdffull(obs, means, covars):
for c, (mu, cv) in enumerate(itertools.izip(means, covars)):
cv_chol = linalg.cholesky(cv, lower=True)
cv_det = np.prod(np.diagonal(cv_chol))**2
cv_sol = solve_triangular(cv_chol, (obs - mu).T, lower=True)
cv_sol = linalg.solve_triangular(cv_chol, (obs - mu).T, lower=True)
log_prob[:, c] = -.5 * (np.sum(cv_sol**2, axis=0) + \
ndim * np.log(2 * np.pi) + np.log(cv_det))

Expand Down

0 comments on commit 3fab72a

Please sign in to comment.