Skip to content

fix: keep cross_validation pool results before the executor closes - #2768

Open
alibb007 wants to merge 1 commit into
meta:mainfrom
alibb007:fix/cross-validation-pool-results-1974
Open

alibb007 wants to merge 1 commit into
meta:mainfrom
alibb007:fix/cross-validation-pool-results-1974

Conversation

@alibb007

Copy link
Copy Markdown

Fixes #1974.

cross_validation now collects all parallel pool.map results into a list inside the try, so the lazy result iterator is no longer consumed after the executor has been shut down in finally.

Changed: python/prophet/diagnostics.py

@meta-cla meta-cla Bot added the CLA Signed label Oct 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cross validation with multiprocessing RuntimeError: dictionary changed size during iteration

1 participant