语言:中文
最后更新:2026-06-14
页面定位:模型文档
切换:English
语言切换:English
AdaptiveLasso 提供自适应 L1 惩罚线性回归(Zou, 2006)。与标准 Lasso 使用统一惩罚不同,Adaptive Lasso 根据初始估计为每个坐标分配数据驱动的权重
statgpu.linear_model.AdaptiveLasso
其中
- 初始化:通过岭惩罚坐标下降计算初始系数估计(匹配 R glmnet 的岭求解器)
-
权重计算:$w_j = 1/(|\hat{\beta}_j^{init}| + \varepsilon)^\nu$,默认
$\nu = 1$ - 加权 L1 求解:使用 FISTA 求解加权 Lasso 问题
在正则条件下(Zou 2006, Theorem 1):
- 选择一致性:$\Pr(\hat{S} = S_0) \to 1$
- 渐近正态性:$\sqrt{n}(\hat{\beta}{\hat{S}} - \beta{0,S_0}) \xrightarrow{d} N(0, \Sigma_0)$
- 默认
compute_inference=False(adaptive_l1 不支持 debiased 推断) - 对选中变量做推断可用 oracle 方法:在选中的 support set 上重新拟合 OLS
| 参数 | 默认值 | 说明 |
|---|---|---|
alpha |
1.0 |
正则化强度 |
nu |
1.0 |
权重计算指数(1 或 2,Zou 2006) |
fit_intercept |
True |
是否拟合截距 |
max_iter |
1000 |
最大迭代次数 |
tol |
1e-4 |
收敛容差 |
device |
"auto" |
cpu / cuda / torch |
solver |
"auto" |
求解器选择 |
gpu_memory_cleanup |
False |
CuPy 内存池清理 |
from statgpu.linear_model import AdaptiveLasso
model = AdaptiveLasso(alpha=0.1, nu=1.0)
model.fit(X, y)
print(model.coef_) # 稀疏系数
print(model.score(X, y)) # R-squared- Zou, H. (2006). The adaptive lasso and its oracle properties. Journal of the American Statistical Association, 101(476), 1418-1429.
- Wang, H., Li, B., & Leng, C. (2009). Shrinkage tuning parameter selection with a diverging number of parameters. Journal of the Royal Statistical Society: Series B, 71(3), 671-683.