compute_error: Helper function for computing error rates

Description Usage Arguments Details Value Author(s)

Description

Helper function for computing error rates

Usage

1
compute_error(object, data = NULL, response.name, response, loss)

Arguments

object

a object containing responses

data

a data object

response.name

the name of the response, if response.name = NULL then object will be treated as the response.

response

the response

loss

the loss function

Details

This function can be used to compute error rates. It is consist with the use cases of the Err genetic function. (see msgl package for an example of how to use this function)

Value

a vector with the computed error rates

Author(s)

Martin Vincent


sglOptim documentation built on May 2, 2019, 5:55 p.m.