Nothing
train_lasso <-
function(X,y,pars = list())
{
cvres <- cv.glmnet(X,y)
mod <- glmnet(X,y,lambda = cvres$lambda.1se)
result <- list()
result$Yfit <- predict(mod,X)
result$residuals <- y - result$Yfit
result$model <- mod
return(result)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.