MLCore::LARSProjectionParameters
MLCore::LARSProjectionParameters
Parameters for LARS Projection (supervised dimensionality reduction). More…
#include <MLModelParameters.hpp>
Inherits from MLCore::MLModelParametersBase
Public Attributes
| Name | |
|---|---|
| RegularizationType | regularization_type Regularization preset. |
| double | lambda1 L1 regularization penalty (sparsity). |
| double | lambda2 L2 regularization penalty (shrinkage). |
| double | tolerance Convergence tolerance on feature correlations. |
| bool | use_cholesky Use Cholesky decomposition (faster in most cases). |
Additional inherited members
Public Functions inherited from MLCore::MLModelParametersBase
| Name | |
|---|---|
| virtual | ~MLModelParametersBase() =default |
Detailed Description
struct MLCore::LARSProjectionParameters;Parameters for LARS Projection (supervised dimensionality reduction).
LARSProjectionOperation uses mlpack’s LARS (Least Angle Regression Stagewise) algorithm to perform one-vs-all linear regression with L1/L2 regularization. The regression coefficients form a (C × D) weight matrix that projects data into a C-dimensional space where C is the number of classes.
The [regularization_type](/api_generated/Classes/structMLCore_1_1LARSProjectionParameters.md#variable-regularization-type) field selects presets for lambda1/lambda2:
- LASSO: Uses lambda1, ignores lambda2
- Ridge: Ignores lambda1, uses lambda2
- ElasticNet: Uses both lambda1 and lambda2
Public Attributes Documentation
variable regularization_type
RegularizationType regularization_type = RegularizationType::LASSO;Regularization preset.
variable lambda1
double lambda1 = 0.1;L1 regularization penalty (sparsity).
variable lambda2
double lambda2 = 0.0;L2 regularization penalty (shrinkage).
variable tolerance
double tolerance = 1e-16;Convergence tolerance on feature correlations.
variable use_cholesky
bool use_cholesky = true;Use Cholesky decomposition (faster in most cases).
Updated on 2026-11-13 at 20:25:41 +0000