Skip to content

[FIX] stats: Open Corpus in OWDataTable after transposing it#2177

Merged
lanzagar merged 2 commits intobiolab:masterfrom
VesnaT:transpose_sparse
Apr 7, 2017
Merged

[FIX] stats: Open Corpus in OWDataTable after transposing it#2177
lanzagar merged 2 commits intobiolab:masterfrom
VesnaT:transpose_sparse

Conversation

@VesnaT
Copy link
Contributor

@VesnaT VesnaT commented Mar 31, 2017

Issue

Fixes: #2156

Description of changes
Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

Codecov Report

Merging #2177 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #2177   +/-   ##
=======================================
  Coverage   71.55%   71.55%           
=======================================
  Files         318      318           
  Lines       54475    54475           
=======================================
  Hits        38979    38979           
  Misses      15496    15496

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 407db85...1fc495b. Read the comment docs.

weighted = weights is not None and X.dtype != object

if weighted:
weights = np.c_[weights] / sum(weights)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd still compute weights instead of doing it in two places later. Just a suggestion, feel free to ignore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

radon...

@astaric astaric added this to the 3.4.2 milestone Apr 7, 2017
@lanzagar lanzagar changed the title stats: Open Corpus in OWDataTable after transposing it [FIX] stats: Open Corpus in OWDataTable after transposing it Apr 7, 2017
@lanzagar lanzagar merged commit 65d9359 into biolab:master Apr 7, 2017
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.

5 participants