| lasso | R Documentation |
Fits a LASSO (Least Absolute Shrinkage and Selection Operator) regression model under a transfer learning framework. Supports feature selection and coefficient estimation by combining target data and source data.
lasso(target, source = NULL, transfer = FALSE, lambda = "lambda.1se")
target |
A list containing two elements:
Required. |
source |
A list (optional, default: NULL) containing two elements:
Used when transfer = TRUE. |
transfer |
A logical value (default: FALSE) indicating whether to enable transfer learning mode (combine source data with target data). |
lambda |
A string (default: 'lambda.1se') specifying the criterion for selecting regularization parameter:
|
A numeric vector coef containing LASSO coefficient estimates (including intercept).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.