Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudioZeni committed May 13, 2021
1 parent bd195e9 commit 1913ba0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions raffy/linear_potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ def fit(self, X, Y=None, Y_en=None, noise=1e-8,
gtg = np.einsum('na, nb -> ab', g_tot, g_tot)
# Add regularization
noise = self.noise*np.ones(len(gtg))
if Y_en is not None:
noise[-len(X):] = noise[-len(X):]/10
gtg[np.diag_indices_from(gtg)] += noise
# Cholesky Decomposition to find alpha
L_ = cholesky(gtg, lower=True)
Expand Down

0 comments on commit 1913ba0

Please sign in to comment.