Learn R Programming

softclassval (version 1.0-20160527)

postproc: Attach postprocessing function to operator

Description

The postprocessing function is applied during performance calculation after averaging but before dev is applied. This is the place where the root is taken of root mean squared errors.

Usage

postproc(op)
postproc (op) <- value

Arguments

op
the operator (function)
value
function (or its name or symbol) to do the post-processing. NULL deletes the postprocessing function.

Value

logical indicating the type of operator. NA if the attribute is missing.

Details

postproc (op) retrieves the postprocessing function (or NULL if none is attached)

See Also

sens post

Examples

Run this code

postproc (wRMSE)
myop <- function (r, p) p * (r == 1)
postproc (myop) <- `sqrt`

Run the code above in your browser using DataLab