build a SVM classification panel
1 2 | supportVectorMachine(X, Y, X.test = NULL, Y.test = NULL,
family = "binomial", filter = "p.value", topranked = 50)
|
X |
nxp matrix - training dataset |
Y |
categorical variables |
X.test |
nxp matrx - test dataset |
family |
"binomial" or "multinomial" |
filter |
= "none" or "p.value" |
topranked |
= 50 (top number of features to select and build a classifier) |
alpha |
= 1 (lasso), alpha = 0 (ridge), 0 < alpha < 1 (elastic net penalty) |
lambda |
= strength of elastic net penalty |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.