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

Fix result corruption when re-using calculators #206

Merged
merged 5 commits into from
Feb 9, 2023

Conversation

michael-nml
Copy link
Collaborator

This PR fixes an issue with some of the calculators/estimators returning data from previous runs when they would be used repeatedly.

Affected calculators/estimators:

  • CPBE
  • DLE
  • Performance calculator
  • Multivariate drift

Test cases added to ensure correct behaviour.

Fixes #192

@michael-nml michael-nml changed the title Fix result corruption when re-using monitors Fix result corruption when re-using calculators Feb 9, 2023
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Base: 79.26% // Head: 79.32% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (9ac56c4) compared to base (90def51).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #206      +/-   ##
==========================================
+ Coverage   79.26%   79.32%   +0.06%     
==========================================
  Files          73       73              
  Lines        5753     5757       +4     
  Branches      903      903              
==========================================
+ Hits         4560     4567       +7     
  Misses        955      955              
+ Partials      238      235       -3     
Impacted Files Coverage Δ
nannyml/base.py 79.42% <ø> (ø)
...ift/multivariate/data_reconstruction/calculator.py 96.09% <100.00%> (+0.03%) ⬆️
nannyml/performance_calculation/calculator.py 88.37% <100.00%> (+0.13%) ⬆️
...ml/performance_estimation/confidence_based/cbpe.py 87.17% <100.00%> (+0.08%) ⬆️
...rformance_estimation/direct_loss_estimation/dle.py 93.00% <100.00%> (+0.07%) ⬆️
nannyml/plots/blueprints/comparisons.py 85.54% <0.00%> (+1.80%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nnansters nnansters merged commit e15d76c into main Feb 9, 2023
@michael-nml michael-nml deleted the fix/192-duplicate-results branch February 14, 2023 09:18
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.

Calculator includes results from previous estimations
2 participants