GLMNet.jl icon indicating copy to clipboard operation
GLMNet.jl copied to clipboard

I cannot set the family as Binomial

Open zhangjb35 opened this issue 1 year ago • 1 comments

When I try to set the variable family as Binomial, glmnet just give me an error:

ERROR: MethodError: no method matching glmnet!(::Matrix{Float64}, ::Vector{Float64}, ::Binomial{Float64}; alpha=1, standardize=false, intercept=true, lambda=[0.0005])
Closest candidates are:
  glmnet!(::Matrix{Float64}, ::Matrix{Float64}, ::Binomial; offsets, weights, alpha, penalty_factor, constraints, dfmax, pmax, nlambda, lambda_min_ratio, lambda, tol, standardize, intercept, maxit, algorithm) at ~/.julia/packages/GLMNet/Bzpup/src/GLMNet.jl:337

I use the version 1.8.

zhangjb35 avatar Apr 22 '23 18:04 zhangjb35

This is my code modelFit=glmnet(X, Y, Binomial(), alpha = 1, standardize=false, intercept=true, lambda=[0.0005])

zhangjb35 avatar Apr 22 '23 18:04 zhangjb35