From 3605e7a8348ecd744bb3d06d147bc7e95be05ae3 Mon Sep 17 00:00:00 2001 From: alibb007 Date: Thu, 22 Oct 2026 15:12:08 -0700 Subject: [PATCH] fix: `cross_validation` now collects all parallel `pool.map` results int --- python/prophet/diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/prophet/diagnostics.py b/python/prophet/diagnostics.py index 89f740c06..fbaf8ff7a 100644 --- a/python/prophet/diagnostics.py +++ b/python/prophet/diagnostics.py @@ -257,7 +257,7 @@ def map(self, func, *iterables): logger.info("Applying in parallel with %s", pool) try: - predicts = pool.map(single_cutoff_forecast, *iterables) + predicts = list(pool.map(single_cutoff_forecast, *iterables)) if parallel == "dask": # convert Futures to DataFrames predicts = cast("dd.Client", pool).gather(predicts)