-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Jacobian to GeneralizedLorentz1D
, SmoothBrokenPowerLaw
in stingray.simulator.models
#889
base: main
Are you sure you want to change the base?
Conversation
…ingray.simulator.models`
88fbb61
to
e145833
Compare
8bb2e6f
to
85f0175
Compare
85f0175
to
8026b67
Compare
I think changes are ready for review. |
@ankitkhushwaha thanks for your PR. However, I haven't noticed any tests failing, there are no issues open about it as far as I can tell. Could you be clearer about what is failing, and what your changes do? |
@matteobachetti these test are fixed now. TODO: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #889 +/- ##
===========================================
- Coverage 96.03% 46.31% -49.73%
===========================================
Files 48 48
Lines 9770 9855 +85
===========================================
- Hits 9383 4564 -4819
- Misses 387 5291 +4904 ☔ View full report in Codecov by Sentry. |
Hey @matteobachetti, mostly this pr is ready to be reviewed, could you review this. |
fitter_with_deriv = fitting.LevMarLSQFitter() | ||
new_model_with_deriv = fitter_with_deriv(model_with_deriv, x, data) | ||
fitter_no_deriv = fitting.LevMarLSQFitter() | ||
new_model_no_deriv = fitter_no_deriv(model_no_deriv, x, data, estimate_jacobian=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
under the hood fit_driv
function is called when
new_model_no_deriv = fitter_no_deriv(model_no_deriv, x, data, estimate_jacobian=True)
is called also model(x)
will executes evalate
function.
i am wondering why codecov is falling.
will check it later on .
TODO:
i have added the jacabian for each parameter in both
GeneralizedLorentz1D
,SmoothBrokenPowerLaw
function.i have confirmed that jacobian for function with respect to each parameter is correct.
@matteobachetti