nci / scores

Metrics for the verification, evaluation and optimisation of forecasts, predictions or models.
https://scores.readthedocs.io/
Apache License 2.0
58 stars 15 forks source link

Improved visual rendering of contingency tables #361

Open tennlee opened 4 months ago

tennlee commented 4 months ago

Is your feature request related to a problem? Please describe. The current contingency tables don't render well in jupyter notebooks or readthedocs.

Describe the solution you'd like It would be nice see an improved stylised representation for quick reading. If possible, it would also be nice to get a simplified text "pretty print". The xarray rendering is fine for people wanting to look at the full xarray object but some nicer visualisation options would be helpful.

Describe alternatives you've considered Maybe a pandas table would render nicely. It might be possible to add a mathjax render which might work nicely in notebooks A simplified text display would also be possible

Additional context In future, it would be nice to extend the approach to multicategorical tables.

nicholasloveday commented 4 months ago

I like the idea of a pandas table that you suggested as a potential option.