Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在使用 Lasso 时将某些系数的惩罚设置为 0。glmnet 函数为此提供了一个名为 pinch.factor 的选项。插入符号包中是否有等价物?
火车功能内部:
model_fit <- train(Data[,-1], Data[,1],method = "glmnet",penalty.factor=rep(1,50),...)