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 July 17, 2018, 7:19 a.m.