Compute prediction errors for classification and regression problems.
evalerr(family, y, yhat)
a family used in bst
. Classification or regression family.
response variable. For classification problems, y must be 1/-1.
predicted values.
For classification, returns misclassification error. For regression, returns mean squared error.
For classification, returns misclassification error. For regression, returns mean squared error.