costMatrix: Compute or check the structure of a cost matrix

Description Usage Arguments Value See Also

View source: R/loss.R

Description

Compute or check the structure of a cost matrix

Usage

1
costMatrix(y, C = c("0/1", "linear"))

Arguments

y

a factor representing the labels of the instances

C

either a cost matrix to check for consistency with labels in y, or a character string defining the standard matrix to compute. If a character string the accepted values are "0/1" for a 0-1 cost matrix or "linear" for linear cost.

Value

the cost matrix object

See Also

bmrm, ordinalRegressionLoss


bmrm documentation built on May 29, 2017, 8:47 p.m.

Search within the bmrm package
Search all R packages, documentation and source code