predicted_class | R Documentation |
This function calculates the predicted class from a matrix of predicted probabilities. The class with the highest probability is selected as the predicted class.
predicted_class(prob)
prob |
A matrix of predicted probabilities with column names indicating the classes. |
A vector of predicted classes corresponding to the highest probability for each row in the input matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.