-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: dev
Are you sure you want to change the base?
Conversation
Just a quick scan but this all looks reasonable. If we can add some tests and it passes, this should be an easy merge. |
Hi mentor, I am finishing poisson and am going to finish this one right away. |
There was a problem hiding this 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!
@wzzlcss, is there anything else you wanted to do on this PR or should I go ahead and merge it? |
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.