evalerr {bst} | 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