R/predict_binary_class.R

Defines functions predict_binary_class

predict_binary_class <- function(probability) {
  ifelse(probability > 0.5, 1, 0)
}
epongpipat/eepR documentation built on June 5, 2024, 10:03 a.m.