Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
bellet committed Aug 2, 2024
1 parent 60e74be commit cda9e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metric_learn/sdml.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def _fit(self, pairs, y):
Theta0=theta0, Sigma0=sigma0)
else:
_, M, *_ = graphical_lasso(emp_cov, alpha=self.sparsity_param,
verbose=self.verbose,
cov_init=sigma0)
verbose=self.verbose,
cov_init=sigma0)
raised_error = None
w_mahalanobis, _ = np.linalg.eigh(M)
not_spd = any(w_mahalanobis < 0.)
Expand Down

0 comments on commit cda9e6e

Please sign in to comment.