Description Usage Arguments Value Examples
Convert a vector in a ordert factor with
levels un<pos
as required when using
the one-class classiifiers from trainOcc
.
1 |
y |
a vector of labels or a numeric vector of length 2 where the first element specifies the number of positive and the second the number of negative samples. |
positive |
the label of the positive class in y. if not given the id with the smallest frequency is used. |
an ordererd factor with the levels un<pos
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.