You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I am using your code to solve logistic regression using the code
N = 80
d = 5
C = 5
pfac = scipy.ones([d+N,C])
pfac[:d,:C]=0
x = np.random.randn(N,d)
i = np.eye(N)
x = np.concatenate([x,i],axis=1)
y = np.random.randint(0,5,size=[N,])
y = y.astype('float')
fit = glmnet(x = x.copy(), y = y.copy(), family = 'multinomial', mtype = 'grouped', penalty_factor=pfac)
The above code works on the synthesis data. However, when I use it in the my own x and y. It prints out:
Warning: Non-fatal error in glmnet library call: error code =
-1
Check results for accuracy. Partial or no results returned.
Hi there,
I am using your code to solve logistic regression using the code
The above code works on the synthesis data. However, when I use it in the my own x and y. It prints out:
which should be the code of
glmnet_python/glmnet_python/lognet.py
Lines 225 to 227 in 645deee
And send out the error of
In
glmnet_python/glmnet_python/lognet.py
Line 275 in 645deee
The reason is that the calculated lmu=-1.
I want to locate the bug but find it was computed in
glmnet_python/glmnet_python/lognet.py
Lines 185 to 216 in 645deee
I am not familiar with Fortran, so it is hard for me to find out the error.
Could you help me?
The text was updated successfully, but these errors were encountered: