Bundle Methods for Regularized Risk Minimization

Compute or check the structure of a cost matrix

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

`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. |

the cost matrix object

bmrm, ordinalRegressionLoss

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.