Conversation
| fe_map.generate_absolute_values() | ||
|
|
||
| # we need to compare the absolute experimental and calculated values so generate them | ||
| abs_dataframe = fe_map.get_absolute_dataframe() |
There was a problem hiding this comment.
We need an easier way of getting the predictions and experimental values out of the FEMap in the correct order.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #164 +/- ##
==========================================
+ Coverage 66.78% 69.39% +2.60%
==========================================
Files 17 19 +2
Lines 1096 1186 +90
==========================================
+ Hits 732 823 +91
+ Misses 364 363 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
hannahbaumann
left a comment
There was a problem hiding this comment.
Thanks @jthorton , lgtm, just left two comments!
| If `fraction` is not between 0 and 1. | ||
| """ | ||
|
|
||
| if not (0 <= fraction <= 1): |
There was a problem hiding this comment.
If it checks for this, maybe the fraction argument shouldn't be optional?
| num_ligands = histogram.shape[0] | ||
| num_best_ligands = math.floor(num_ligands * fraction) | ||
|
|
||
| overlap_coefficients = [_compute_overlap_coefficient(histogram, i + 1) for i in range(num_ligands)] |
There was a problem hiding this comment.
I think I'm probably missing something here, but what is the reason for not putting num_best_ligands instead of num_ligands?
There was a problem hiding this comment.
Good point we can save calculating the overlap for all ligands!
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
# Conflicts: # cinnabar/classification_metrics.py
hannahbaumann
left a comment
There was a problem hiding this comment.
Thanks @jthorton , lgtm!
Description
Provide a brief description of the PR's purpose here.
This finishes the fraction of best ligands PR started in #122 by @matthewtwarren
Todos
Notable points that this PR has either accomplished or will accomplish.
Questions
Checklist
newsentry for new features, bug fixes, or other user facing changes.Status
Tips
Since this will create a commit, it is best to make this comment when you are finished with your work.