gelnet.ker(K, y, lambda, a, max.iter = 100, eps = 1e-05, v.init = rep(0,
nrow(K)), b.init = 0, fix.bias = FALSE, silent = FALSE,
balanced = FALSE)
The method determines the problem type from the labels argument y. If y is a numeric vector, then a ridge regression model is trained by optimizing the following objective function: $$\frac{1}{2n} \sum_i a_i (z_i - (w^T x_i + b))^2 + w^Tw$$
If y is a factor with two levels, then the function returns a binary classification model, obtained by optimizing the following objective function: $$-\frac{1}{n} \sum_i y_i s_i - \log( 1 + \exp(s_i) ) + w^Tw$$ where $$s_i = w^T x_i + b$$
Finally, if no labels are provided (y == NULL), then a one-class model is constructed using the following objective function: $$-\frac{1}{n} \sum_i s_i - \log( 1 + \exp(s_i) ) + w^Tw$$ where $$s_i = w^T x_i$$
In all cases, $w = \sum_i v_i \phi(x_i)$ and the method solves for $v_i$.
gelnet