Skip to content

[MNT] - Fixes parallel fitting for model fit post-processing & fit failure management#389

Merged
TomDonoghue merged 5 commits intomainfrom
parfix
Mar 23, 2026
Merged

[MNT] - Fixes parallel fitting for model fit post-processing & fit failure management#389
TomDonoghue merged 5 commits intomainfrom
parfix

Conversation

@TomDonoghue
Copy link
Copy Markdown
Member

@TomDonoghue TomDonoghue commented Mar 23, 2026

Responds to #388.

Issue: due to an error during updates in the re-organization, the paralellizer sub-function didn't call the full set of things it should do for fitting ('fit model, do post-processing, all while catching errors') but only called the algorithm fit function in isolation. This means that parallelized runs did not do post-processing (parameter conversions & metric evaluation), leaving a bunch of unexpected NaNs in the outputs, and also the model fit process was not in a try/except, meaning you could get unexpected fails.

This PR updates the approach to separate a _fit method on the Model object that does the full set of tasks for a model fit, and then uses this for calls in parallelized runs.

This PR also updates the tests for parallel runs to be more stringent, as the previous versions were lacking (did not catch these issues).

@fooof-tools fooof-tools deleted a comment from codecov bot Mar 23, 2026
@TomDonoghue TomDonoghue merged commit d8f0892 into main Mar 23, 2026
9 of 10 checks passed
@TomDonoghue TomDonoghue deleted the parfix branch March 23, 2026 15:42
@fooof-tools fooof-tools deleted a comment from codecov bot Mar 23, 2026
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.

1 participant