GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
433 stars 127 forks source link

Update R^2 method in `eval_metrics` #1211

Closed robbibt closed 4 months ago

robbibt commented 4 months ago

Proposed changes

The current R^2 coefficient of determination method in eval_metrics produces confusing and unpredictable results. This PR simplifies this by simply squaring the linear regression correlation co-efficient, as recommended by the stats.linregress function: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.linregress.html image