Description Usage Arguments Details Value See Also Examples
Convert A Vector of Factors to Matrix
1 | convertClass2Matrix(target)
|
target |
Vector of factor representing each class. |
This Function can be used to convert factor to matrix yMat, e.g. For type 'raw' softmaxReg function input yMat, softmax regression.
Matrix with dimensions number of observation * number of class factors
1 2 3 4 5 6 7 8 |
[1] 150
[1] 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.