8000 Add observation weights by wzzlcss · Pull Request #29 · jolars/sgdnet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add observation weights #29

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

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open

Add observation weights #29

wants to merge 11 commits into from

Conversation

wzzlcss
Copy link
Collaborator
@wzzlcss wzzlcss commented Aug 20, 2019

Hi mentors, this PR implements observation weights. The changes I am making are multiplying sample weights to gradient, loss and changing to weighted mean in null model, as well as add weight when computing maximum column norm for step size and largest lambda. It seems that glmnet's largest lambda is different.

@wzzlcss wzzlcss added the enhancement New feature or request label Aug 20, 2019
@michaelweylandt
Copy link
Collaborator

Just a quick scan but this all looks reasonable. If we can add some tests and it passes, this should be an easy merge.

@wzzlcss
Copy link
Collaborator Author
wzzlcss commented Aug 21, 2019

Hi mentor, I am finishing poisson and am going to finish this one right away.

Copy link
Owner
@jolars jolars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@michaelweylandt
Copy link
Collaborator

@wzzlcss, is there anything else you wanted to do on this PR or should I go ahead and merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0