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

No support for weights #91

Open
jeffwong-nflx opened this issue Nov 24, 2016 · 2 comments
Open

No support for weights #91

jeffwong-nflx opened this issue Nov 24, 2016 · 2 comments

Comments

@jeffwong-nflx
Copy link

Hi, it would be great to have support for a weights vector as in glmnet

@ChrisBotella
Copy link

Hello,

I met the same limitation when trying to use this package to fit a "glm" model.

More precisely, I need to optimize a loss function where each term is multiplied by a constant scalar given by the user. This corresponds to the argument "weights" of the glm function (stats package).

If the package is still maintained, it would be very usefull to add this feature and I suppose this is not very costly in term of code. However, it seemed to me this part of the code is written in C++, which I don't know how to deal with.

@tomwenseleers
Copy link

As a workaround, I suppose you can just multiple both your covariate matrix x and y by sqrt(weights) ?

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