Skip to content

Commit

Permalink
Debug dsm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Jul 16, 2024
1 parent 520ffde commit 686766a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superdsm/dsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def grad(self, params):
assert np.allclose(
(np.ones((1, np.prod(self.w.shape))) @ self.smooth_mat.multiply(term1_sparse)).reshape(-1),
self.smooth_mat.multiply(term1_sparse).sum(axis=0).reshape(-1),
atol=1e-8
atol=1e-16
)
grad2 += self.alpha * (params.ξ / self.term2)
grad = np.concatenate([grad, grad2])
Expand Down

0 comments on commit 686766a

Please sign in to comment.