Skip to content

Commit

Permalink
Update R/metrics-ordinal.R
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Abbott <[email protected]>
  • Loading branch information
nikosbosse and seabbs authored Dec 5, 2024
1 parent 6dae1d7 commit 34fddf7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/metrics-ordinal.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ rps_ordinal <- function(observed, predicted, predicted_label) {
correct_order <- as.numeric(predicted_label)
ordered_predicted <- predicted[, correct_order]

# Use scoringRules implementation
rps <- scoringRules::rps_probs(as.numeric(observed), ordered_predicted)
return(rps)
}

0 comments on commit 34fddf7

Please sign in to comment.