Skip to content

ERROR: cannot specify both lambda and lambda_min_ratio - despite only specifying lambda #72

Description

@tiemvanderdeure

From version 0.7.3, I started getting an error ERROR: cannot specify both lambda and lambda_min_ratio when fitting wide model matrices to binomial response data and specifying lambda (but not lambda_min_ratio).

I think the reason is this line of code, where a length(y) was changed to a size(y, 1) in version 0.7.3 - which is not the same thing when fitting binomial data.

MWE:

n = 1000
m = 1200
y = rand(Bool, n)
y_mat = [(1 .- y) y]
X = rand(n, m)
lambda = collect(0.01:0.01:1)

glmnet(X, y_mat, GLMNet.Binomial(); lambda)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions