Skip to content

fix: replace mutable default evals_result=dict() across 27 contrib models#2177

Open
EdenRochmanSharabi wants to merge 1 commit intomicrosoft:mainfrom
EdenRochmanSharabi:fix/model-state-leakage
Open

fix: replace mutable default evals_result=dict() across 27 contrib models#2177
EdenRochmanSharabi wants to merge 1 commit intomicrosoft:mainfrom
EdenRochmanSharabi:fix/model-state-leakage

Conversation

@EdenRochmanSharabi
Copy link
Copy Markdown

Fixes #1890. Mutable default argument evals_result=dict() caused state leakage between sequential model.fit() calls. Replaced with evals_result=None + guard pattern.

Multiple contrib models used evals_result=dict() as a default parameter
in fit(), causing state leakage between sequential model.fit() calls.
Replaced with evals_result=None and guard pattern across 27 model files.

Fixes microsoft#1890
@EdenRochmanSharabi
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

The hyperparameters optimized by optuna cannot reproduce the results when run separately.

1 participant