Skip to content

fix: Ensure Reproducibility of ElasticNetEstimator#1374

Merged
thinkall merged 3 commits into
microsoft:mainfrom
dannycg1996:flaml-fix-elastic-net-reproducibility
Oct 29, 2024
Merged

fix: Ensure Reproducibility of ElasticNetEstimator#1374
thinkall merged 3 commits into
microsoft:mainfrom
dannycg1996:flaml-fix-elastic-net-reproducibility

Conversation

@dannycg1996
Copy link
Copy Markdown
Collaborator

@dannycg1996 dannycg1996 commented Oct 28, 2024

ElasticNetEstimator currently has no default random_state, so reproducing results is difficult. Described here. Taking the best model and re-fitting it to the same folds will garner different results, which isn't ideal.

Why are these changes needed?

Ensures that model results are reproducible.

Related issue number

Closes #1373

Checks

…nsure reproduciblity. Also included elasticnet in reproducibility tests
Copy link
Copy Markdown
Collaborator

@thinkall thinkall left a comment

Choose a reason for hiding this comment

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

Nice! Thank you, @dannycg1996 .

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.

[Bug]: Inconsistency in ElasticNet due to lack of random state

2 participants