findk | R Documentation |
This method return a maximum number of weights of the model not yet integer.
findk(
x,
y,
nfolds = 1,
gamma = 1,
k.sparse = NULL,
vartype = "real",
lb = -1,
ub = 1
)
x |
matrix or dataframe of predictors, of dimension n*p; each row is an observation vector. |
y |
response variable (1 or -1) |
nfolds |
k-folds cross-validation that we want test. Dedault value is 1. |
gamma |
is the hinge loss parameter.. Defines the margin |
k.sparse |
is the sparsity (non-negative real value). Default value is |
vartype |
is the type of coefficients : |
lb |
is the lower bound of coefficients |
ub |
is the upper bound of coefficients |
An integer is number of coefficients not yet integer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.