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

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

Open
Ouimoi opened this issue Mar 16, 2019 · 4 comments
Open

Comments

@Ouimoi
Copy link

Ouimoi commented Mar 16, 2019

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.

@cjlin1
Copy link
Owner

cjlin1 commented Mar 17, 2019 via email

@Ouimoi
Copy link
Author

Ouimoi commented Mar 17, 2019

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

@houcharlie
Copy link

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

@Ouimoi
Copy link
Author

Ouimoi commented Apr 1, 2021

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.

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

3 participants