Skip to content

Commit

Permalink
Update metrics again and fix actual error, which was not taking (uniq…
Browse files Browse the repository at this point in the history
…ue()) on the data in the vignette
  • Loading branch information
nikosbosse committed Nov 20, 2023
1 parent 29787bc commit b4f5052
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file modified data/metrics.rda
Binary file not shown.
6 changes: 3 additions & 3 deletions inst/create-metric-tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ library(data.table)

ae <- list(
`Metric` = "Absolute error",
`Name` = "ae_point, ae_median",
`Name` = list("ae_point", "ae_median"),
`Functions` = r"(score(), ae_point()), ae_median_sample()",
`D` = r"($\checkmark$)",
`C` = r"($\checkmark$)",
Expand All @@ -18,7 +18,7 @@ ae <- list(

se <- list(
`Metric` = "Squared error",
`Name` = "se_point, se_mean",
`Name` = list("se_point", "se_mean"),
`Functions` = r"(score(), se_point(), se_mean_sample())",
`D` = r"($\checkmark$)",
`C` = r"($\checkmark$)",
Expand Down Expand Up @@ -164,7 +164,7 @@ bias <- list(

under_overprediction <- list(
`Metric` = "Under-, Over-prediction",
`Name` = "underprediction, overprediction",
`Name` = list("underprediction", "overprediction"),
`Functions` = r"(score(), interval_score())",
`D` = r"($-$)",
`C` = r"($-$)",
Expand Down
2 changes: 1 addition & 1 deletion man/metrics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion vignettes/metric-details.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ data$C <- replace(data$C)
data$B <- replace(data$B)
data$Q <- replace(data$Q)
data[, 1:6] %>%
data <- data[, 1:6] %>%
unique()
data %>%
kbl(format = "html",
escape = FALSE,
align = c("lccccl"),
Expand Down

0 comments on commit b4f5052

Please sign in to comment.