george icon indicating copy to clipboard operation
george copied to clipboard

Fix `compute_gradient` to include frozen parameters

Open mcfarljm opened this issue 3 years ago • 0 comments

Update compute_gradient to include frozen parameters. Otherwise, the finite difference gradient does not include frozen parameters, which creates a shape mismatch for the array expected by get_gradient. This occurs when using a model that has frozen parameters but no user-defined gradient function. I have added such a regression test case.

mcfarljm avatar Nov 23 '22 23:11 mcfarljm