|
Algorithm 1. Feature selection using Lasso Regression. |
The input is as follows: : Design matrix containing predictor variables (features). : Vector of observed target values. : Regularization parameter for LASSO regression. : Number of folds for cross-validation.
-
2.
-
3.
Initialize an empty list to store selected features.
-
4.
Perform k-fold cross-validation:
-
5.
Find the common measure of efficiency for all folds for each value of .
-
6.
Select the optimal value of that minimises the performance.
-
7.
Fit a LASSO regression model on the entire dataset using the selected .
-
8.
Extract the coefficients of the LASSO model.
-
9.
Identify the features with non-zero coefficients and add them to the list of selected features.
-
10.
The output is as follows:
|