Description Usage Arguments Value Author(s) References See Also Examples
This function provides prediction on a test data set using the obtained classifier from a call of the cvsmac function.
1 2 |
object |
An object returned by a call from the function "cvsmac". |
new.x |
The predictor matrix used for prediction. If not specified, the training matrix x will be used. |
... |
Not used. |
new.x |
The new testing matrix used for prediction. |
best.lambda |
The sequence of lambda values that have the smallest cross validation error in the training data set. |
best.beta0 |
The beta0 values that correspond to the best.lambda sequence. |
best.beta |
The beta values that correspond to the best.lambda sequence. |
best.pred.y |
The predicted labels for new.x. |
best.pred.prob |
A list of data.frame containing predicted class conditional probabilities. Each data.frame corresponds to a value in the best.lambda object. Each row of the data.frames corresponds to an observation in new.x, and each column represents a class, with the column name as the class label. |
call |
The function call that returns this result. |
Chong Zhang, Guo Xian Yau and Yufeng Liu
C. Zhang and Y. Liu (2014). Multicategory Angle-based Large-margin Classification. Biometrika, 101(3), 625-640.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.