Skip to content

Commit 70d7054

Browse files
nikosbosseseabbs
andauthored
Update R/metrics-nominal.R
Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
1 parent c56a351 commit 70d7054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/metrics-nominal.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ assert_input_categorical <- function(
7373
summed_predictions <- round(rowSums(predicted, na.rm = TRUE), 10) # avoid numeric errors
7474
}
7575
# Allow for numeric errors
76-
tolerance <- 1e-8
76+
tolerance <- 1e-4
7777
invalid_rows <- abs(summed_predictions - 1) > tolerance
7878
if (any(invalid_rows)) {
7979
#nolint start: keyword_quote_linter object_usage_linter

0 commit comments

Comments
 (0)