Permalink
Browse files

Revert "Make previous commit work also with old versions of scipy."

This reverts commit e8d32c6.
  • Loading branch information...
1 parent c7248c8 commit 3fab72a92c52e6334e19d21c6a87a32e90f938da @fabianp fabianp committed Oct 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 scikits/learn/gmm.py
View
@@ -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))

0 comments on commit 3fab72a

Please sign in to comment.