Skip to content

ENH save evaluation results per subject as soon as they are computed (#419, #775) - #1263

Merged
bruAristimunha merged 1 commit into
NeuroTechX:developfrom
bruAristimunha:fix/push-results-early-419
Oct 14, 2026
Merged

bruAristimunha merged 1 commit into
NeuroTechX:developfrom
bruAristimunha:fix/push-results-early-419

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

ENH save evaluation results per subject as soon as they are computed (#419, #775)

process() used to write a dataset's results to the HDF5 file only after
every fold of the dataset had finished, so a crash lost all of them.
Fold results are now streamed from joblib (return_as='generator', list
fallback for joblib < 1.3) and each (pipeline, subject) pair is written
as soon as all its folds are done. That pair is the unit the results
cache uses for resume, so no partial subject is ever written and a
rerun with overwrite=False computes only the missing subjects. Writes
stay in the main process; the HDF5 layout and values are unchanged.

Closes #419
Closes #775

…euroTechX#419, NeuroTechX#775)

process() used to write a dataset's results to the HDF5 file only after
every fold of the dataset had finished, so a crash lost all of them.
Fold results are now streamed from joblib (return_as='generator', list
fallback for joblib < 1.3) and each (pipeline, subject) pair is written
as soon as all its folds are done. That pair is the unit the results
cache uses for resume, so no partial subject is ever written and a
rerun with overwrite=False computes only the missing subjects. Writes
stay in the main process; the HDF5 layout and values are unchanged.
@bruAristimunha
bruAristimunha force-pushed the fix/push-results-early-419 branch from 15e3738 to 2e917fa Compare October 14, 2026 14:15
@bruAristimunha
bruAristimunha merged commit 2dddfe7 into NeuroTechX:develop Oct 14, 2026
10 of 12 checks passed
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.

Push results as soon as they are computed in evaluations Save results as soon as they are computed

1 participant