Skip to content

Consolidate glmnet predict methods #868

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

Merged
merged 3 commits into from
Feb 14, 2023
Merged

Conversation

hfrick
Copy link
Member

@hfrick hfrick commented Feb 9, 2023

This PR consolidates the different flavors of predict methods (predict(), predict_<type>() and multi_predict()) for different glmnet model types into one function per predict method flavor.

The goal is to bring it all in one place to more easily maintain/apply changes. I'm currently not touching the class of the glmnet model_fit objects (yet?).

The glmnet tests in extratests run fine locally with this change. They'll run on CI when this in main.

@hfrick hfrick requested a review from EmilHvitfeldt February 9, 2023 16:22
Copy link
Member

@EmilHvitfeldt EmilHvitfeldt left a comment

Choose a reason for hiding this comment

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

I like the effort. all of this glmnet is quite unwieldy. Keeping it in a separate file will make it a lot easier organizational

@hfrick hfrick requested a review from EmilHvitfeldt February 10, 2023 18:11
@EmilHvitfeldt
Copy link
Member

Approve!

@hfrick hfrick merged commit 6cb9225 into main Feb 14, 2023
@hfrick hfrick deleted the glmnet-consolidate-predict-methods branch February 14, 2023 09:18
@github-actions
Copy link

github-actions bot commented Mar 4, 2023

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants