-
Notifications
You must be signed in to change notification settings - Fork 32
Add quantile interval score #704
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
Conversation
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.
@reza-armuei - I mostly help out with documentation. Just a heads up that I often do my reviews in a few rounds, so may do another round(s) of review later.
I have made some comments about some really minor things I noticed.
I also have two questions. In included.md, you say "Quantile Interval Score" is also known as "Interval Score". Given that:
- Should there be an additional entry for "Interval Score" in included.md?
- Should "Interval Score" also be its own function that calls
scores.continuous.quantile_interval_score
(e.g. similar to some of the categorical metrics which are known by multiple names)? I don't have an opinion on this, I just wanted to raise the question for consideration.
I haven’t had a chance to review your pull request in full as yet. However, in the meantime I wanted to mention a few things. API Docstring: Over time we have refined what we think makes a good API docstring, and have started including more things in the API docstrings. In your API docstring, it would be great if you could please add:
I don’t have an API docstring template (it is currently being drafted). However, here are two recent API docstrings that could be useful to look at: https://scores.readthedocs.io/en/228-documentation-testing-branch/api.html#scores.continuous.kge https://scores.readthedocs.io/en/latest/api.html#scores.probability.interval_tw_crps_for_ensemble (noting this one does not include mathjax) Interval Score I haven’t had a chance to look into this yet. But if quantile interval score is often referred to as interval score, it may well make sense to have a separate “interval score” function that calls “quantile interval score.” However, before creating this additional function, I would suggest updating the existing docstring first. Then once that is sorted out, add the additional “interval score” function if required |
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.
Hi @reza-armuei. I don't have the time or interest to do a full code review. I have made one suggestion for the doc string. If the code matches that in Jive then you can be pretty confident it is OK. If there are specific queries for me, feel free to contact me with them.
PS I see there is a tutorial notebook. I will have a look at that.
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.
I didn't find an easy way to run the notebook. The comments are all "for your consideration". Hopefully there is something useful for you.
@reza-armuei please add the new tutorial notebook to the tutorial gallery. I have some feedback on the notebook itself as well, but I'll do that as a PR back to your fork. |
Hi @tennlee I've already added |
Yes, you need to open up the Jupyter Notebook called "Tutorial Gallery" and add a link to your new notebook in there |
Added quantile interval score Fixed tutorial notebook Addressed review comments Revised a test based on review comment Updated docstring Updated tutorial gallery notebook
53df404
to
f895fa8
Compare
I have created #711 to track the goal of supporting Dataset arguments also. |
Please work through the following checklists. Delete anything that isn't relevant.
Development for new xarray-based metrics
reduce_dims
,preserve_dims
, andweights
args.Testing of new xarray-based metrics
xr.Dataarrays
andxr.Datasets
Tutorial notebook
Documentation