diff --git a/stable/.documenter-siteinfo.json b/stable/.documenter-siteinfo.json index 5dc56e8..3ccbfae 100644 --- a/stable/.documenter-siteinfo.json +++ b/stable/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.0","generation_timestamp":"2024-01-27T07:45:08","documenter_version":"1.2.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.0","generation_timestamp":"2024-01-27T08:03:04","documenter_version":"1.2.1"}} \ No newline at end of file diff --git a/stable/MLMnet_Simulation/index.html b/stable/MLMnet_Simulation/index.html index 7d1bd44..6ca79c9 100644 --- a/stable/MLMnet_Simulation/index.html +++ b/stable/MLMnet_Simulation/index.html @@ -30,7 +30,7 @@ 57.6650390625 17.0859375 5.0625 - 1.5
Create a 1d array of alpha parameter penalties values that determine the penalties mix between $L_1$ and $L_2$ to fit the estimates according to the Elastic Net penalization method. In the case of Lasso regression ($L_1$ regularization), alpha should be 1, and 0 for Ridge regression ($L_2$ regularization). If the alphas are not in descending order, they will be automatically sorted by mlmnet
.
alphas = reverse(collect(0:0.5:1));
If alphas
argument is omitted, a Lasso regression will be applied which is equivalent to alphas = [1]
.
The algorithms available for fitting Elastic Net penalized estimates in mlmnet
function come with customizable keyword arguments for fine-tuning. The method
keyword argument selects the function implementing the Elastic-net penalty estimation method. The default method is ista; alternative options include fista, fista_bt, admm, and cd. Note: Any irrelevant arguments will simply be disregarded.
Algorithm | Methods | Parameter | Default | Description |
---|---|---|---|---|
Coordinate Descent | "cd" | isRandom | true | Determines the use of either random or cyclic updates |
Active Coordinate Descent | "cd_active" | isRandom | true | Specifies the choice between random and cyclic updates |
ISTA with fixed step size | "ista" | stepsize | 0.01 | Sets a fixed step size for updates |
setStepsize | true | Decides if the fixed step size is to be computed, overriding stepsize | ||
FISTA with fixed step size | "fista" | stepsize | 0.01 | Establishes a fixed step size for updates |
setStepsize | true | Determines if the fixed step size should be recalculated, overriding stepsize | ||
FISTA with backtracking | "fista_bt" | stepsize | 0.01 | Indicates the initial step size for updates |
gamma | 0.5 | The multiplier for step size during backtracking/line search | ||
ADMM | "admm" | rho | 1.0 | The parameter influencing ADMM tuning |
setRho | true | Decides whether the ADMM tuning parameter rho is to be auto-calculated | ||
tau_incr | 2.0 | The factor for increasing the ADMM tuning parameter | ||
tau_decr | 2.0 | The factor for decreasing the ADMM tuning parameter | ||
mu | 10.0 | The parameter influencing the balance between primal and dual residuals |
In this example, we will use the 'fista' method for our estimation process. Given that our design matrix already incorporates an intercept, we specify that there is no need to add an additional intercept to the design matrices X and Z.
est_fista = mlmnet(
+ 1.5
Create a 1d array of alpha parameter penalties values that determine the penalties mix between $L_1$ and $L_2$ to fit the estimates according to the Elastic Net penalization method. In the case of Lasso regression ($L_1$ regularization), alpha should be 1, and 0 for Ridge regression ($L_2$ regularization). If the alphas are not in descending order, they will be automatically sorted by mlmnet
.
alphas = reverse(collect(0:0.5:1));
If alphas
argument is omitted, a Lasso regression will be applied which is equivalent to alphas = [1]
.
The algorithms available for fitting Elastic Net penalized estimates in mlmnet
function come with customizable keyword arguments for fine-tuning. The method
keyword argument selects the function implementing the Elastic-net penalty estimation method. The default method is ista; alternative options include fista, fista_bt, admm, and cd. Note: Any irrelevant arguments will simply be disregarded.
Algorithm | Methods | Parameter | Default | Description |
---|---|---|---|---|
Coordinate Descent | "cd" | isRandom | true | Determines the use of either random or cyclic updates |
Active Coordinate Descent | "cd_active" | isRandom | true | Specifies the choice between random and cyclic updates |
ISTA with fixed step size | "ista" | stepsize | 0.01 | Sets a fixed step size for updates |
setStepsize | true | Decides if the fixed step size is to be computed, overriding stepsize | ||
FISTA with fixed step size | "fista" | stepsize | 0.01 | Establishes a fixed step size for updates |
setStepsize | true | Determines if the fixed step size should be recalculated, overriding stepsize | ||
FISTA with backtracking | "fista_bt" | stepsize | 0.01 | Indicates the initial step size for updates |
gamma | 0.5 | The multiplier for step size during backtracking/line search | ||
ADMM | "admm" | rho | 1.0 | The parameter influencing ADMM tuning |
setRho | true | Decides whether the ADMM tuning parameter rho is to be auto-calculated | ||
tau_incr | 2.0 | The factor for increasing the ADMM tuning parameter | ||
tau_decr | 2.0 | The factor for decreasing the ADMM tuning parameter | ||
mu | 10.0 | The parameter influencing the balance between primal and dual residuals |
In this example, we will use the 'fista' method for our estimation process. Given that our design matrix already incorporates an intercept, we specify that there is no need to add an additional intercept to the design matrices X and Z.
est_fista = mlmnet(
dat,
[lambdas[1]], [alphas[1]],
method = "fista",
@@ -76,4 +76,4 @@
size = (800, 300)
),
title = ["Residuals" "Distribution of the residuals"]
-)
Additional details can be found in the documentation for specific functions.
Settings
This document was generated with Documenter.jl version 1.2.1 on Saturday 27 January 2024. Using Julia version 1.10.0.