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] owdiscretize: Fix quadratic complexitiy in the n variables #3016

Merged
merged 1 commit into from
May 4, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

Discretize widgets has quadratic complexity just in constructing the output domain.

Noticeable for instance on geo-gds360 dataset with the 'Leave numeric' default discretization and no individual variable overrides.

Description of changes

Remove the awkward linear search for the source variable in discretized_var method.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

Codecov Report

Merging #3016 into master will increase coverage by <.01%.
The diff coverage is 37.5%.

@@            Coverage Diff             @@
##           master    #3016      +/-   ##
==========================================
+ Coverage   82.12%   82.12%   +<.01%     
==========================================
  Files         334      334              
  Lines       57663    57659       -4     
==========================================
+ Hits        47354    47355       +1     
+ Misses      10309    10304       -5

@lanzagar lanzagar added this to the 3.14 milestone May 4, 2018
@lanzagar lanzagar merged commit c55c25b into biolab:master May 4, 2018
@ales-erjavec ales-erjavec deleted the fixes/owdiscretize-quadratic branch May 15, 2018 10:23
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.

3 participants