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 functions to modify parameters for LARS #2861

Merged
merged 2 commits into from Mar 6, 2021

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Mar 5, 2021

This fixes #2857.

The PR adds Lambda1(), Lambda2(), UseCholesky(), and Tolerance() members so that the parameters of LARS training can be modified after creating the object. The only "trickiness" is that we now must recompute elasticNet and lasso (internal members) when we start training, since the user may have modified the lambda1 or lambda2 values.

Should be an easy review, I think. :)

Copy link
Member

@zoq zoq left a comment

Choose a reason for hiding this comment

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

Yes, it's an easy review.

@zoq zoq added this to Done in PR Tracking Mar 5, 2021
@rcurtin rcurtin merged commit 946e944 into mlpack:master Mar 6, 2021
@rcurtin rcurtin deleted the lars-accessors branch March 6, 2021 22:24
This was referenced Oct 14, 2022
@rcurtin rcurtin mentioned this pull request Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Modification methods for LARS/LASSO/ElasticNet?
3 participants