-
Notifications
You must be signed in to change notification settings - Fork 6
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
Extend CRPS documentation #1
Comments
Additionally, it would be good to list the available estimators in the documentation. I think that I had to go digging through the code to find the available options here https://github.com/frazane/scoringrules/blob/main/scoringrules/core/crps/_gufuncs.py#L346 |
In the documentation it has
This raises an error. Instead, I had to do import scoringrules
scoringrules.crps_ensemble(obs, pred) Note that the forecast and observed args are also out of order when comparing the function implementation to the existing docs and need to be swapped. |
With the typehints you have "ArrayLike" and "Array" as strings for the forecast and observed data types. This isn't particularly useful when looking at the docs to see what data types it can takes. E.g., https://github.com/frazane/scoringrules/blob/main/scoringrules/_crps.py#L11 Is there a reason why you don't use I had to go looking in https://github.com/frazane/scoringrules/blob/main/scoringrules/core/typing.py to see what data types it could handle. It would be nice if |
The example for twCRPS for ensembles doesn't use the |
Because of the multi-backend support, types are defined dynamically with When using modern IDEs like VSCode, these type hints defined as strings are handled like forward reference and are still "clickable" and give you the information you need. But it's true that it would be better if these also appeared in the documentation. I will definitely look into that. Thanks for the feedback! |
The text was updated successfully, but these errors were encountered: