Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save results gradually in run #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

floracharbo
Copy link

Proposed solution to issue #31

Save results immediately for each model-validation combination. If the code breaks before the end of the loops, the results can be recovered from the results file rather than re-computed.

  • Have you added to CHANGELOG.md for this PR?
    I haven't, I will do if this PR is accepted :)

Proposed solution to issue datavaluepeople#31

Save results immediately for each model-validation combination. If the code breaks before the end of the loops, the results can be recovered from the results file rather than re-computed.
@DBCerigo
Copy link
Contributor

Nice 😸 Unit tests for it are the next task :)

@DBCerigo DBCerigo requested review from ali-tny and DBCerigo June 18, 2022 12:15
add the test_interruption_results_saving test in test_run.py
this checks that all goes well in a scenario when the run fails before all results were saved, and the run is run again, recovering previously saved results.
@codecov-commenter
Copy link

Codecov Report

Merging #46 (06578b3) into main (64dfef1) will increase coverage by 0.74%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main       #46      +/-   ##
===========================================
+ Coverage   99.25%   100.00%   +0.74%     
===========================================
  Files           6         6              
  Lines         134       136       +2     
===========================================
+ Hits          133       136       +3     
+ Misses          1         0       -1     
Impacted Files Coverage Δ
kotsu/run.py 100.00% <100.00%> (ø)
kotsu/registration.py 100.00% <0.00%> (+1.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 64dfef1...06578b3. Read the comment docs.

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.

3 participants