Skip to content

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.

4 participants