prob_to_binary: simple function to convert probability to binary classes

View source: R/predict_simple_ensemble.R

prob_to_binaryR Documentation

simple function to convert probability to binary classes

Description

simple function to convert probability to binary classes

Usage

prob_to_binary(x, thresh, class_levels)

Arguments

x

a vector of probabilities

thresh

the threshold to convert to binary

class_levels

the binary levels

Value

a vector of binary values


tidysdm documentation built on April 3, 2025, 9:56 p.m.