We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70d7054 commit 44f4a60Copy full SHA for 44f4a60
1 file changed
R/metrics-nominal.R
@@ -73,8 +73,7 @@ assert_input_categorical <- function(
73
summed_predictions <- round(rowSums(predicted, na.rm = TRUE), 10) # avoid numeric errors
74
}
75
# Allow for numeric errors
76
- tolerance <- 1e-4
77
- invalid_rows <- abs(summed_predictions - 1) > tolerance
+ invalid_rows <- abs(summed_predictions - 1) > 1e-4
78
if (any(invalid_rows)) {
79
#nolint start: keyword_quote_linter object_usage_linter
80
row_indices <- which(invalid_rows)
0 commit comments