-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
LinearLSQFitter cannot fit compound models #6038
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
Comments
@pllim: does "Effort-low" refer to updating the docs or to constructing a combined Vandermonde matrix? |
The docs 😄 |
Thanks. I was wondering if I should leave this for some new contributor at tomorrow's sprints, but there are lots of "effort-low/package-novice" issues, so I'll just do the docs (which could conceivably help people sprinting) 😄. |
Update: First failure addressed in #6018 and now produces the same error as the second one. |
Just a thought for later: For this to work, I believe we need a reliable way of determining whether a compound model is linear after combining its constituent models, which may or may not be the case. There is some such logic in |
As mentioned in the issue astropy#6038, the LinearLSQFitter currently does not handle compound models. @jehturner added a note about that in the narrative docs. I'm extending that note to the docstrings in order to make this fact even clearer for users.
As mentioned in the issue astropy#6038, the LinearLSQFitter currently does not handle compound models. @jehturner added a note about that in the narrative docs. I'm extending that note to the docstrings in order to make this fact even clearer for users.
Undo the doc modifications in #6041 before closing this as resolved.
@nden tells me that "I think in general a compound model should be fitted with a non-linear fitter because at least currently the LinearFitter cannot construct the Vandermonde matrix for compound models". It would be useful to have this working if possible, as I believe non-linear fitters are not guaranteed to converge on the solution without a good starting guess, which may not always be available. Also, the documentation should mention that it currently doesn't work (which I'll fix in the meantime). This is just for the record and in case someone wants to work on it before one of us gets to it.
Running LinearLSQFitter on a couple of compound models currently gives errors like the following:
The text was updated successfully, but these errors were encountered: