Description Usage Arguments Value Examples
This algorithm takes one penalty value
1 2 | LinearModelL1(X.scaled.mat, y.vec, penalty = 0.5, opt.thresh = 0.5,
initial.weight.vec = rnorm(ncol(X.scaled.mat) + 1), step.size = 0.01)
|
X.scaled.mat |
the scaled trainning input matrix (n x p) |
y.vec |
the training training labels with size (n x 1) |
penalty |
a non-neagtive numeric scalar, default value 0.5, usually does not work :) |
opt.thresh |
a numeric scalar, default value as 0.5 |
initial.weight.vec |
initial weight with size (p+1 x 1), default value as a normal distribution warm up. |
step.size |
a numeric scalar, default value as 0.01 |
optimal weight vector (with p+1 elements, first element is the bias/intercept b) for the given penalty parameter.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.