Description Usage Arguments Details Value Examples
Fit a model with feature-weighted elastic net for a path of lambda values. Fits linear and logistic regression models.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
x |
Input matrix, of dimension |
y |
Response variable. Quantitative for |
z |
Feature of features matrix, with dimension |
lambda |
A user supplied |
family |
Response type. Either |
alpha |
The elastic net mixing hyperparameter, a real value number between 0 and 1 (inclusive). Default value is 1. |
standardize |
If |
max_iter |
The number of iterations for the optimization. Default is 1. |
ave_mode |
If equal to 1 (default), the gradient descent direction for
|
thresh_mode |
If equal to 1 (default), backtracking line search for
|
t |
The initial step size for |
a |
The factor by which step size is decreased in |
thresh |
If the mean/median objective function does not decrease by at least this factor, we terminate the optimization early. Default is 1e-4. |
verbose |
If |
fwelnet
always mean centers the columns of the x
matrix. If
standardize=TRUE
, fwelnet
will also scale the columns to have
standard deviation 1. In all cases, the beta
coefficients returned are
for the original x
values (i.e. uncentered and unscaled).
An object of class "fwelnet"
.
beta |
A |
theta |
Theta value, a |
a0 |
Intercept sequence of length |
lambda |
The actual sequence of |
nzero |
The number of non-zero coefficients for each value of
|
family |
Response type. |
call |
The call that produced this object. |
obj |
A |
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.