evalerr: Compute prediction errors

Description Usage Arguments Details Value Author(s)

View source: R/bst.R

Description

Compute prediction errors for classification and regression problems.

Usage

1
evalerr(family, y, yhat)

Arguments

family

a family used in bst. Classification or regression family.

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


bst documentation built on Jan. 13, 2021, 7:18 p.m.