-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added min model error options, incl "by site" #142
Conversation
Also added "robust" option to use median absolute deviation in place of standard deviation.
If calculating a min error for each site, it makes more sense for the mean or median used for `avg` to be calculated for each site.
Adding an option for a percentile-based calculation on min_model_error. This changes what is required in the ini - calculate_min_error now takes either "percentile" or "residual". Need to update docs/templates to reflect this |
One thing that has just occurred to me - do we need to raise an error in the case when calculate_min_error is neither "percentile", "residual" or None? I guess at the moment if someone gets the spelling wrong it would silently skip the min error calculation |
Raises ValueError if value is not None or one of the two available methods.
Removed "average over" option to take mean (or median) over a subset of the obs, since we weren't using this option. Now there is just an option to calculate the min error separately for each site, or to calculate one value for each site (along with the robust/non-robust option.)
@joe-pitt I've updated the docs with the new options and added some code to raise an error if the value of |
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.
Looks good! I think it does close Issue #136 , at least in that we now have various options and it would be easy to add more
Also added "robust" option to use median absolute deviation in place of standard deviation.
In an ini file use:
to use new options. (Either "by_site" or "robust" can be omitted; or
min_error_options
can be omitted entirely)CHANGELOG.md
file