Learn R Programming

softclassval (version 1.0-20160527)

dev: Mark operator as deviation measure

Description

The operators measure either a performance (i.e. accordance between reference and prediction) or a deviation. dev (op) == TRUE marks operators measuring deviation.

Usage

dev(op)
dev (op) <- value

Arguments

op
the operator (function)
value
logical indicating the operator type

Value

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

See Also

sens post

Examples

Run this code

dev (wRMSE)
myop <- function (r, p) p * (r == 1)
dev (myop) <- TRUE

Run the code above in your browser using DataLab