ADR Suggestion
Fitting weights
#135
damskii9992
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
General
When fitting data to a model it is possible to add weights to different data-points to prioritize the fit to certain parts of the data which might be more important or more accurate than other parts. This is especially useful when working with data with uncertainties, as it is possible to weigh more accurate data-points higher than more inaccurate points.
Current Implementation
Currently, if the user does not provide a list of weights to the fitter, a list of default weights will be used, according to:
i.e. the weights are set to the square-root of the data values y. This is an issue for 2 reasons:
Inf
/NaN
errors.Proposed implementation
Based on the discussion of this issue in #133, we propose to completely remove default weights from the core
EasyScience
library and require users to provide a list of weights explicitly whenever making a fit. We additionally propose to add a check on this input to ensure that the user doesn't accidentally add weights with 0-values orNaN
s/Inf
s to increase robustness.Sub-projects can then implement their own defaults depending on the technique of the relevant project.
Beta Was this translation helpful? Give feedback.
All reactions