evalerr {bst} | R Documentation |
Compute prediction errors
Description
Compute prediction errors for classification and regression problems.
Usage
evalerr(family, y, yhat)
Arguments
family |
a family used in |
y |
response variable. For classification problems, y must be 1/-1. |
yhat |
predicted values. |
Details
For classification, returns misclassification error. For regression, returns mean squared error.
Value
For classification, returns misclassification error. For regression, returns mean squared error.
Author(s)
Zhu Wang
[Package bst version 0.3-24 Index]