Description Usage Arguments Value Examples
Training by using cross validation on a linear model with square loss and early stopping method. Return a list which contains the best iteration step, mean loss of training and validation data, and a predict function which gives a prediction based on the selected step.
1 | LMSquareLossEarlyStoppingCV(X.mat, y.vec, fold.vec, max.iteration)
|
X.mat |
train feature matrix of size [n x p] |
y.vec |
train label vector of size [n x 1] |
fold.vec |
the fold vector information of size [n x 1], which is assigned in the general test |
max.iteration |
integer scalar greater than 1 |
result.list a list with mean.validation.loss.vec, mean.train.loss.vec,selected.steps,weight.vec,and predict function
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.