Skip to content

Commit

Permalink
Adding validation plots and metrics (#72)
Browse files Browse the repository at this point in the history
* Add function for hexbin plot

* Add function for histogram of confusion matrix entries

* Add functions to calculate metrics

* Add example validation notebook for CMLs


---------

Co-authored-by: Christian Chwala <[email protected]>
  • Loading branch information
bwalraven and cchwala authored Jan 17, 2025
1 parent 444962f commit 75ef993
Show file tree
Hide file tree
Showing 6 changed files with 2,148 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/development/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

### New features

- [PR 40](https://github.com/OpenSenseAction/poligrain/pull/40) Add functions
for plotting CML metadata (by [@bwalraven](https://github.com/bwalraven))

### Bug fixes

### Maintenance
Expand Down
924 changes: 924 additions & 0 deletions docs/notebooks/Example_validation.ipynb

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions docs/set_pandoc_symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@

p = pathlib.Path("../.nox/docs/bin/pandoc")
if not p.exists():
p.symlink_to(
f"../lib/python{python_version[0]}.{python_version[1]}/site-packages/pypandoc/files/pandoc"
)
p.symlink_to(pathlib.Path("../lib/site-packages/pypandoc/files/pandoc"))
3 changes: 2 additions & 1 deletion src/poligrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

__version__ = "0.0.0"

from . import example_data, plot_map, plot_metadata, spatial, xarray
from . import example_data, plot_map, plot_metadata, spatial, validation, xarray

__all__ = [
"__version__",
Expand All @@ -25,4 +25,5 @@
"spatial",
"plot_metadata",
"xarray",
"validation",
]
Loading

0 comments on commit 75ef993

Please sign in to comment.