liblinear icon indicating copy to clipboard operation
liblinear copied to clipboard

How to get intermediate alpha(a) when solving dual logistic regression

Open Ouimoi opened this issue 7 years ago • 4 comments

Hi there, I am wondering how I can get the intermediate alpha(a) when solving dual logistic regression, with L2 regularizer for example.

image

I am using Python interface but it seems the output model doesn't contain alpha information anymore. Really appreciate any kind of help here.

Ouimoi avatar Mar 16 '19 14:03 Ouimoi

Yes the reason is the only the final model w vector is needed. I think you can print it if needed

On 2019-03-16 07:58, Hardy wrote:

Hi there, I am wondering how I can get the intermediate alpha(a) when solving dual logistic regression, with L2 regularizer for example.

[1]

I am using Python interface but it seems the output model doesn't contain alpha information anymore. Really appreciate any kind of help here.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [2], or mute the thread [3]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/liblinear/issues/50", "url": "https://github.com/cjlin1/liblinear/issues/50", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://user-images.githubusercontent.com/8280272/54477025-ae3e4700-483e-11e9-89ff-5a88a86aeff5.png [2] https://github.com/cjlin1/liblinear/issues/50 [3] https://github.com/notifications/unsubscribe-auth/AFGwnr_b-e8_SHlu41G1XheJmNviVrkbks5vXQapgaJpZM4b32PR

cjlin1 avatar Mar 17 '19 02:03 cjlin1

Thank you for your prompt response. Then I will check if any parameter can be passed to print alpha or I need to build from modified source codes.

Yes the reason is the only the final model w vector is needed. I think you can print it if needed … On 2019-03-16 07:58, Hardy wrote: Hi there, I am wondering how I can get the intermediate alpha(a) when solving dual logistic regression, with L2 regularizer for example. [1] I am using Python interface but it seems the output model doesn't contain alpha information anymore. Really appreciate any kind of help here. -- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [2], or mute the thread [3]. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#50", "url": "#50", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ] Links: ------ [1] https://user-images.githubusercontent.com/8280272/54477025-ae3e4700-483e-11e9-89ff-5a88a86aeff5.png [2] #50 [3] https://github.com/notifications/unsubscribe-auth/AFGwnr_b-e8_SHlu41G1XheJmNviVrkbks5vXQapgaJpZM4b32PR

Ouimoi avatar Mar 17 '19 03:03 Ouimoi

Hey @Ouimoi did you manage to print the alphas? Or could @cjlin1 point me to where I should modify the code to do so?

houcharlie avatar Mar 20 '21 16:03 houcharlie

Hey @Ouimoi did you manage to print the alphas? Or could @cjlin1 point me to where I should modify the code to do so?

You can find them in linear.cpp and write them to disk.

Ouimoi avatar Apr 01 '21 11:04 Ouimoi