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] Distribution: vectorize variance, speeds up normalization #5230

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

markotoplak
Copy link
Member

Issue

Variance used python loops, making it very inefficient. This change alone speeds-up normalization for test-case from #5219 by 10x. Issue #5219 will remain open because it is still possible to substantially improve normalization.

Includes
  • Code changes
  • Tests
  • Documentation

@markotoplak markotoplak added this to the 3.28.0 milestone Feb 1, 2021
@codecov
Copy link

codecov bot commented Feb 1, 2021

Codecov Report

Merging #5230 (dba28fc) into master (68cbfdb) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5230      +/-   ##
==========================================
+ Coverage   85.17%   85.19%   +0.01%     
==========================================
  Files         300      300              
  Lines       60970    60970              
==========================================
+ Hits        51934    51942       +8     
+ Misses       9036     9028       -8     

This makes normalization much faster.
@janezd janezd merged commit f63968a into biolab:master Feb 4, 2021
@markotoplak markotoplak deleted the norm-faster branch November 25, 2021 15:38
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