evalerr | R Documentation |
Compute prediction errors for classification and regression problems.
evalerr(family, y, yhat)
family |
a family used in |
y |
response variable. For classification problems, y must be 1/-1. |
yhat |
predicted values. |
For classification, returns misclassification error. For regression, returns mean squared error.
For classification, returns misclassification error. For regression, returns mean squared error.
Zhu Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.