zellerlab / siamcat

R package for Statistical Inference of Associations between Microbial Communities And host phenoType
https://siamcat.embl.de/
52 stars 16 forks source link

Error when training enet model in latest version #20

Open adamsorbie opened 3 years ago

adamsorbie commented 3 years ago

Hi,

I think there might be a bug in the latest version, specifically somehwere in the code for training an elastic net model. I was receiving this error: "Error in setHyperPars2.Learner(learner, insert(par.vals, args)) : is not feasible for parameter 'alpha'!" but I noticed it works fine if I explicitly set a fixed alpha value with param.set.

jakob-wirbel commented 3 years ago

Hi @adamsorbie

Thanks very much for your feedback! Yeah, i already encountered this error as well before. Are you using the latest Bioconductor version or the development version from Github?

Maybe you could try to install the latest version of the package via devtools:

require("devtools")
devtools::install_github(repo = 'zellerlab/siamcat')

Did this fix your error?

adamsorbie commented 3 years ago

I'm using the latest version, 3.12. Unfortunately not, I still get the same error. I see there's also is a deprecation warning from mlr when loading SIAMCAT, Maybe the problem is in there? Are you planning to update the package to use mlr3?