Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot set the family as Binomial #67

Open
zhangjb35 opened this issue Apr 22, 2023 · 1 comment
Open

I cannot set the family as Binomial #67

zhangjb35 opened this issue Apr 22, 2023 · 1 comment

Comments

@zhangjb35
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant