Open afshinrahimi opened 8 years ago
I saw your post on cross validated : )
On the face of it, I'm not sure what it would take. The library depends on the FORTRAN code of hastie et.al. I have no ability to modify that FORTAN code (it's a nightmare, and was seemingly written to make sure no one can understand it). The python-glmnet library simply hooks into the FORTAN code from python code. So, I would investigate two things:
1) Does the FORTRAN code support a multinomial distribution? 2) If so, can you call it with a discrete distribution as arguments?
You should be able to answer these questions by reading the comments in the FORTRAN. If the answer's are yes, then it should be possible to wrap the multinomial calls in python.
On Sun, May 15, 2016 at 5:50 PM, afshinrahimi notifications@github.com wrote:
Hi,
I was just using the code to do a regularized multinomial logistic regression where each instance's label is a probability distribution over all labels. I found that it is not supported yet as _check_y throws an exception if y's dimension is not eq 1.
It would be great if it is implemented because currently no other library (that I know of) supports that and really need this feature. If you don't have enough time for that would you please guide for me what is the best way to start implementing that in the code?
Thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/madrury/glmnet-python/issues/4
Thank you very much for the prompt reply and the useful guides. I'll give it a try.
Hi,
I was just using the code to do a regularized multinomial logistic regression where each instance's label is a probability distribution over all labels and the design matrix X is sparse. I found that it is not supported yet as _check_y throws an exception if y's dimension is not eq 1.
It would be great if it is implemented because currently no other library (that I know of) supports that and really need this feature. If you don't have enough time for that would you please guide me what is the best way to start implementing that in the code?
Thanks.