Usage
gelnet.cv(X, y, nL1, nL2, nFolds = 5, a = rep(1, n), d = rep(1, p), P = diag(p), m = rep(0, p), max.iter = 100, eps = 1e-05, w.init = rep(0, p), b.init = 0, fix.bias = FALSE, silent = FALSE, balanced = FALSE)
Arguments
X
n-by-p matrix of n samples in p dimensions
y
n-by-1 vector of response values. Must be numeric vector for regression, factor with 2 levels for binary classification, or NULL for a one-class task.
nL1
number of values to consider for the L1-norm penalty
nL2
number of values to consider for the L2-norm penalty
nFolds
number of cross-validation folds (default:5)
a
n-by-1 vector of sample weights (regression only)
d
p-by-1 vector of feature weights
P
p-by-p feature association penalty matrix
m
p-by-1 vector of translation coefficients
max.iter
maximum number of iterations
w.init
initial parameter estimate for the weights
b.init
initial parameter estimate for the bias term
fix.bias
set to TRUE to prevent the bias term from being updated (regression only) (default: FALSE)
silent
set to TRUE to suppress run-time output to stdout (default: FALSE)
balanced
boolean specifying whether the balanced model is being trained (binary classification only) (default: FALSE)