8000 We already have the inverse at that step · seckcoder/scikit-learn@8d103b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d103b5

Browse files
veneamueller
authored andcommitted
We already have the inverse at that step
1 parent 3bfb4e7 commit 8d103b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/covariance/robust_covariance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def c_step(X, n_support, remaining_iterations=30, initial_estimates=None,
117117
remaining_iterations -= 1
118118

119119
previous_dist = dist
120-
dist = (np.dot(X - location, linalg.pinv(covariance)) \
120+
dist = (np.dot(X - location, precision) \
121121
* (X - location)).sum(axis=1)
122122
# Catch computation errors
123123
if np.isinf(det):

0 commit comments

Comments
 (0)
0