Skip to content

Commit

Permalink
Add message denoting finish of derivative check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Jan 26, 2024
1 parent bcd69ec commit 64d18a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pygradflow/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ def _deriv_check(self, x: np.ndarray, y: np.ndarray) -> None:
params,
)

logger.info("Finished derivative check")

def print_result(
self,
total_time: float,
Expand Down
4 changes: 1 addition & 3 deletions tests/pygradflow/rosenbrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def obj_grad(self, v):
[x, y] = v
a = self.a
b = self.b
return np.array(
[4 * (x**2 - y) * b * x - 2 * a + 2 * x, -2 * (x**2 - y) * b]
)
return np.array([4 * (x**2 - y) * b * x - 2 * a + 2 * x, -2 * (x**2 - y) * b])

def cons(self, v):
return np.array([])
Expand Down

0 comments on commit 64d18a8

Please sign in to comment.