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

Treatment optimization #164

Closed
wants to merge 11 commits into from
Closed

Treatment optimization #164

wants to merge 11 commits into from

Conversation

petrasovaa
Copy link
Contributor

Initial draft of optimization. Features:

  • an ABC particle is a combination of infected pixels
  • supports buffers around infected pixels, potentially with variable buffer size
  • treatments have cost, so the treatment size is limited by the budget (input)
  • metric is either infected area or distance to quarantine boundary (or both in some ratio)

Missing documentation, tests.
Computed best estimate used for initial weights makes sense only when using infected area as a metric.
Could be implemented for arbitrary patches, not only for pixels.

@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Attention: Patch coverage is 0% with 435 lines in your changes are missing coverage. Please review.

Project coverage is 78.70%. Comparing base (ac1383a) to head (ce95a0c).
Report is 8 commits behind head on main.

❗ Current head ce95a0c differs from pull request most recent head 7e886ff. Consider uploading reports for the commit 7e886ff to get more accurate results

Files Patch % Lines
R/optimize.R 0.00% 435 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
- Coverage   83.77%   78.70%   -5.08%     
==========================================
  Files          59       47      -12     
  Lines        6066     5831     -235     
==========================================
- Hits         5082     4589     -493     
- Misses        984     1242     +258     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants