Description Usage Arguments Value Examples
Training by using cross validation on a linear model with logistic loss and L2 regularization. Return a list which contains the best penalty, mean loss of training and validation data, and a predict function which gives a prediction based on the selected penalty.
1 | LMLogisticLossL2CV(X.mat, y.vec, fold.vec, penalty.vec)
|
X.mat |
a numeric matrix of size [n x p] |
y.vec |
a numeric vector of length nrow(X.mat) |
fold.vec |
a numeric vector of length nrow(X.mat) |
penalty.vec |
a non-negative numeric vector |
result.list a list with mean.validation.loss.vec, mean.train.loss.vec,penalty.vec,selected.penalty,weight.vec,and predict function
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.