-
Notifications
You must be signed in to change notification settings - Fork 115
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
Update fitting functions #336
Conversation
add examples, mention chaining, update docs
fix wunit problem in fitting() remove some warnings & verbose shown during the fitting process
improve multi-T fitting example
Codecov Report
@@ Coverage Diff @@
## develop #336 +/- ##
===========================================
+ Coverage 75.17% 75.24% +0.07%
===========================================
Files 144 146 +2
Lines 15957 16050 +93
===========================================
+ Hits 11995 12077 +82
- Misses 3962 3973 +11 |
This pull request fixes 1 alert when merging ef47b76 into 781fb52 - view on LGTM.com fixed alerts:
|
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.
- There are multiple warnings about the iso column. I know you want to get rid of it in the near future, but just to remind you.
e:\python\radis\radis\misc\warning.py:341: PerformanceWarning: There shouldn't be a Column 'iso' with a unique value
warnings.warn(WarningType(message))
- In your example at Add fit spectrum method #334 (comment) : replace
maxiter = 300
bysolver_options={"maxiter": 300}
. Although, I don't find this example anywhere in the code. - What is the difference between the fit_spectrum in
factory.py
andfitting.py
. Seems odd to me to have the same function define twice. - Finally, this is what I get when I run the example at Add fit spectrum method #334 (comment). Not a great fit
Init ['T12', 'T3', 'Trot'] = [1150. 2650. 1150.]['', '', '']
Final ['T12', 'T3', 'Trot'] = [1150. 2650. 1150.]['', '', '']
Best ['T12', 'T3', 'Trot'] = [1150. 2670. 1150.]['', '', ''] reached at iteration 4/4
Examples | ||
-------- | ||
|
||
.. minigallery:: radis.lbl.factory.fit_spectrum |
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.
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.
yes ! It will only be generated on Readthedocs (once merged)
This pull request fixes 1 alert when merging f57bb84 into 781fb52 - view on LGTM.com fixed alerts:
|
Add fixed parameters directly in the model (slowly converging to a framework closer to Astropy.modelling/lmfit) - fix residual figure not updating correctly during fits - plot is False by default in fits - updated example to run 120 iterations (longer; but nicer fit)
Thanks for the review!
Note : fitting is very long because |
This pull request fixes 1 alert when merging ce26cc1 into 781fb52 - view on LGTM.com fixed alerts:
|
Description