Skip to content

Refactor LISI metrics - #395

Merged
mumichae merged 10 commits into
mainfrom
refactor_lisi
Apr 17, 2024
Merged

mumichae merged 10 commits into
mainfrom
refactor_lisi

Conversation

@mumichae

@mumichae mumichae commented Jan 9, 2024 •

Copy link
Copy Markdown
Collaborator
  • remove computational bottlenecks
  • start from harmonypy implementation for LISI TODO in new PR

@codecov

codecov Bot commented Jan 9, 2024 •

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 57.97%. Comparing base (59ae6ee) to head (824c146).

❗ Current head 824c146 differs from pull request most recent head fa77b53. Consider uploading reports for the commit fa77b53 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #395      +/-   ##
==========================================
+ Coverage   52.81%   57.97%   +5.15%     
==========================================
  Files          22       22              
  Lines        1882     1675     -207     
==========================================
- Hits          994      971      -23     
+ Misses        888      704     -184     
Flag Coverage Δ
unittests 57.97% <80.55%> (+5.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
scib/metrics/lisi.py 80.47% <80.55%> (+38.18%) ⬆️

@mumichae
mumichae marked this pull request as ready for review January 9, 2024 23:11
@mumichae
mumichae requested a review from LuckyMD January 19, 2024 10:09
@mumichae
mumichae requested a review from VladimirShitov April 2, 2024 11:51

@VladimirShitov VladimirShitov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe, there is a bug with n_batches atm, could you please check it? Otherwise, looks good :)

Comment thread scib/metrics/lisi.py Resolved
@mumichae
mumichae merged commit 443f89b into main Apr 17, 2024
@mumichae
mumichae deleted the refactor_lisi branch April 17, 2024 16:16
barlowa124 pushed a commit to barlowa124/scib that referenced this pull request Dec 4, 2026
* improve np.nansum and use njit for HBeta

* use np.eye function for convert_to_one_hot and reduce redundant initialisation

* use with loop for temporary files

* Add importlib-metadata in setup.cfg

* set minimum python version to 3.8

* python version inas strings

* update Scanorama version

* fix n_batch
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