dfm / george

Fast and flexible Gaussian Process regression in Python
http://george.readthedocs.io
MIT License
445 stars 128 forks source link

Fix `compute_gradient` to include frozen parameters #156

Open mcfarljm opened 1 year ago

mcfarljm commented 1 year ago

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.