Skip to content

Commit

Permalink
Fix aesaraf hessian function
Browse files Browse the repository at this point in the history
  • Loading branch information
aseyboldt committed Nov 18, 2022
1 parent 4acd98e commit e20b435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc/aesaraf.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def grad_ii(i, f, x):

@aesara.config.change_flags(compute_test_value="ignore")
def hessian(f, vars=None):
return -jacobian(gradient(f, vars), vars)
return jacobian(gradient(f, vars), vars)


@aesara.config.change_flags(compute_test_value="ignore")
Expand All @@ -538,7 +538,7 @@ def hessian_diag(f, vars=None):
vars = cont_inputs(f)

if vars:
return -at.concatenate([hessian_diag1(f, v) for v in vars], axis=0)
return at.concatenate([hessian_diag1(f, v) for v in vars], axis=0)
else:
return empty_gradient

Expand Down

0 comments on commit e20b435

Please sign in to comment.