Save results as soon as they are computed
@bruAristimunha is already working on this.
Since Jul 11, 2023.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 264
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 23
Description
As I understand, rn we save the results to the hdf5 file when the evaluation of a whole dataset is over, and then we continue with the next dataset:
https://github.com/NeuroTechX/moabb/blob/a9f2e4ca3abc02e5fb81d36da06760f11653e550/moabb/evaluations/base.py#L165
But if we evaluate many pipelines on the same dataset, the chances of failing before the end of the evaluation are high. And if we fail all the results for the dataset are lost...
Would it be possible to save the results as soon as they are computed (i.e. after every fold of every session of every subject)?
Potential issues I see:
- parallel access to the hdf5 file
- computational overhead due to accessing the hdf5 more often
What do you think?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.