Description Usage Arguments Details Value Author(s) Examples
This function select the class with highest probability in a sample. If multiple classes have the same heighest probability then one is randomly chosen
1 | select_max(x)
|
x |
a vector with sample predictions: the elements represent the classes of outcomes. |
helper function for the tutorial
returns a vector with the following elements:
y
Bob Douma
1 2 3 | library(gtools)
pred = rdirichlet(100, c(0.1,0.1,0.5,0.5)) # generate multinomial probabilties with four classes
pred.bin = multinomialperform:::prob_to_binary(pred)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.