-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add CBC score #1168
Add CBC score #1168
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1168 +/- ##
==========================================
+ Coverage 80.69% 80.76% +0.07%
==========================================
Files 51 51
Lines 8566 8606 +40
Branches 2234 2237 +3
==========================================
+ Hits 6912 6951 +39
Misses 1102 1102
- Partials 552 553 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add tests.
I'll add the tests ASAP, @michalk8. Can you briefly comment on the Pearson correlation part? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @WeilerP !
Adds function to identify observations at the boundary of two clusters.
Add `KernelExpression` class method to estimate the empirical velocity field of boundary cells in the source region towards a target cluster.
Adds `KernelExpression` class method to estimate velocity field based on a single step under the transition matrix.
Add class method for computing cross-boundary correctness score.
* Make function private. * Rename argument `graph` to `graph_key`. * Add return type. * Update docstrings. * Change definition of `source_ids`. * Update identification of boundary IDs.
* Make function private. * Rename argument `graph` to `graph_key`. * Finish type hints. * Update docstrings. * Simplify computation of empirical velocity estimates.
* Make function private. * Add return type. * Update docstrings.
* Add return type. * Rename argument `graph` to `graph_key`. * Update docstrings. * Rename and refactor `get_pearson_corr`.
* Rename function to `cbc`. * Update docstrings. * Refactor `_pearsonr`. * Remove redundant code. * Add TODO comment.
* Refactor definition of `empirical_velo`.
Remove redundant code; `target` is always a string.
Description
Closes
Closes #1167.