R/lasso.R

Defines functions lasso

lasso <- function(train_inputs, train_labels, folds.no){
  model <- cv.glmnet(train_inputs,
                     train_labels,
                     alpha=1,
                     nfolds=folds.no)
  return(model)
}
bhklab/PharmacoGxML documentation built on Nov. 1, 2018, 9:23 p.m.