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

Add weights to cv.biglasso #29

Closed
wants to merge 2 commits into from

Conversation

statwonk
Copy link

In usage of the library with weights, I discovered weights weren't being passed to the cv.biglasso function. This PR plumbs weights to the fn. I plan to add a test case, but I wanted to share in the meantime.

Also, I ran into a C++ compilation issue. Apparently recent versions of Rcpp (> 1.0) prepend an underscore to exported fn names? This caused a conflict with a C++ file not managed by Rcpp::compileAttributes(), https://github.com/YaohuiZeng/biglasso/blob/cad0103ff5cd0ac0bdbcf0d28ec9b9f1e5da8577/src/init.c#L144 Adding the underscores fixes the compilation issue.

@statwonk
Copy link
Author

Ah, it seems there's more to this than wiring it up: #9

@statwonk statwonk closed this Aug 28, 2020
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

Successfully merging this pull request may close these issues.

1 participant