View source: R/predict_simple_ensemble.R
prob_to_binary | R Documentation |
simple function to convert probability to binary classes
prob_to_binary(x, thresh, class_levels)
x |
a vector of probabilities |
thresh |
the threshold to convert to binary |
class_levels |
the binary levels |
a vector of binary values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.