question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement metrics from doppyo

See original GitHub issue

doppyo provides many metrics useful to climpred.

Metrics:

  • contingency
  • many scores derived from contingency (table)
  • rank histogram
  • reliability (diagram)
  • check ROC
  • check RPS

Quick preview of Reliability diagram for DPLE SST tutorial data: image

Issues with doppyo metrics in climpred:

  • some doppyo requirements: windspharm
  • expects and returns xr.DataArray, climpred classes expects and return xr.Dataset
  • some doppyo metrics return xr.Dataset with multiple data_vars (propose to return xr.Dataset or xr.DataArray with new dimension of previous data_vars)
  • dim very similar to over_dims

Code base: https://github.com/csiro-dcfp/doppyo/blob/master/doppyo/skill.py

Trial notebook: https://gist.github.com/aaronspring/eef9496aad6516e6afcf3a89db35b0c9

Next steps:

  • ask doppyo developers whether they would accept PRs for doppyo allowing xr.Datasets also and having extra dims if needed
  • else implement in climpred
  • how to implement into climpred: threshold metric similar to brier_score_threshold

I can imagine doppyo in a similar way as xskillscore providing metrics to climpred.

Thoughts on how to proceed?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
dougiesquirecommented, Aug 2, 2020

Thanks @aaronspring. I’ll try to start porting functions today and see how far I get.

1reaction
bradyrxcommented, Jul 9, 2020

Note also you can add to setup.py optional dependencies. So they could have windspharm as an optional dependency.

https://stackoverflow.com/questions/10572603/specifying-optional-dependencies-in-pypi-python-setup-py

Read more comments on GitHub >

github_iconTop Results From Across the Web

try doppyo metrics in climpred - gists · GitHub
try doppyo metrics in climpred. ... values to integrate over_dim : str Dimension to integrate x : xarray DataArray, optional Values to use...
Read more >
What's New — climpred documentation
Implement new metrics which have been ported over from https://github.com/csiro-dcfp/doppyo/ to xskillscore by Dougie Squire. (GH#439, GH#456) Aaron Spring.
Read more >
climpred/community - Gitter
I found that I implemented the probabilistic metrics wrong. I havent figured out a way to solve it. no need to review these...
Read more >
Standard assessments of climate forecast skill can be ... - Nature
Abstract. Assessments of climate forecast skill depend on choices made by the assessor. In this perspective, we use forecasts of the El Niño- ......
Read more >
Project: Single File Catalog - HackMD
Project: Single File Catalog. Overview; Deliverables - Functionality. esm-collection-spec side; intake-esm side. Milestones - Metrics (TODO); Timeline (TODO) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found