JuliaStats / GLMNet.jl

Julia wrapper for fitting Lasso/ElasticNet GLM models using glmnet
Other
96 stars 35 forks source link

how to specify family #34

Closed aw2018 closed 3 years ago

aw2018 commented 5 years ago

How to specify the family like R programming glmnetcv(X, y,family = "binomial")?

JackDunnNZ commented 3 years ago

You can use path = glmnetcv(X, y, Binomial())

There is an example in the tests here: https://github.com/JuliaStats/GLMNet.jl/blob/f1e253507dfae6538075cbd8c054ff9b5fdfbc22/test/runtests.jl#L258