Skip to content
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

Add new struct called RMSEVariable and necessary functionalities for plotting #91

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

ph-kev
Copy link
Member

@ph-kev ph-kev commented Sep 20, 2024

A combined plot of the box plots and leaderboard would like something below.
boxplot_and_leaderboard

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.61%. Comparing base (6e540bd) to head (cd24b3a).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
+ Coverage   96.91%   97.61%   +0.70%     
==========================================
  Files          10       11       +1     
  Lines         712      922     +210     
==========================================
+ Hits          690      900     +210     
  Misses         22       22              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

NEWS.md Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
docs/src/data/test_csv.csv Outdated Show resolved Hide resolved
ext/ClimaAnalysisMakieExt.jl Outdated Show resolved Hide resolved
ext/ClimaAnalysisMakieExt.jl Outdated Show resolved Hide resolved
ext/ClimaAnalysisMakieExt.jl Outdated Show resolved Hide resolved
src/Leaderboard.jl Outdated Show resolved Hide resolved
src/Leaderboard.jl Outdated Show resolved Hide resolved
test/sample_data/test_csv.csv Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
NEWS.md Show resolved Hide resolved
docs/src/rmse_var.md Show resolved Hide resolved
docs/src/rmse_var.md Show resolved Hide resolved
docs/src/visualize_rmse_var.md Outdated Show resolved Hide resolved
ext/ClimaAnalysisMakieExt.jl Show resolved Hide resolved
This commit adds a struct called `RMSEVariable` which hold all the
information necessary for comparing the root mean square errors between
different models across different categories for a single variable.
This commit adds the functionality of reading RMSEs values from a CSV
file.
This commit adds indexing to the `RMSEVariable`. In other words, the
struct behaves like an array. We allow indexing by both integers and
strings. We also made the decision to support indexing using only a
single string. For instance, `rmse_var["model_name"]` will return the
row of RMSEs across the different categories for that model. However, we
do not support `rmse_var[1]` because it is unclear whether this should
return a row (similar to the string case) or the first value of the
entry (similar to if the struct behaves like an array).
This commit adds functionality to add a single or multiple categories,
models, or units.
This commit adds functionality to find the best single model, worst
single model, and median though `Leaderboard.find_best_single_model`,
`Leaderboard.find_worst_single_model`, `Leaderboard.median`. For
handling NaNs, all NaNs are converted to positive Inf or negative Inf as
appopriate for finding the best single model or worst single model. For
finding the median, the NaNs are filtered out.
This commit adds functionality to plot a boxplot for a single
`RMSEVariable` and a leaderboard/heatmap for multiple `RMSEVariable`s.
For handling NaNs, the box plot filter out NaNs. For the leaderboard, if
a NaN is present, the cell corresponding to the NaN will not be filled
out.
@ph-kev ph-kev merged commit adb1dd0 into CliMA:main Sep 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants