Helper function to print prediction accuracy for a model.
1 | get_missclassification_rate(model, data_test, ...)
|
model |
a model object for which prediction is desired. E.g. object of class
|
data_test |
A data frame or a matrix containing the test data. |
... |
Further arguments passed to model.predict() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.