build an elastic net classification panel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
xtrain |
nxp matrix - training dataset |
ytrain |
factor - response variable |
alpha |
= 1 (lasso), alpha = 0 (ridge), 0 < alpha < 1 (elastic net penalty) |
lambda |
= strength of elastic net penalty |
family |
"binomial" or "multinomial" |
xtest |
nxp matrx - test dataset |
ytest |
factor - response variable |
filter |
= "none" or "p.value" |
topranked |
= 50 (top number of features to select and build a classifier) |
keepVar |
- names of specific variable to keep in model |
weights |
- observational weights; default to 1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.