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] stats: Open Corpus in OWDataTable after transposing it #2177

Merged
merged 2 commits into from
Apr 7, 2017

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.

@@ -193,24 +193,23 @@ def stats(X, weights=None, compute_variance=False):
is_sparse = sp.issparse(X)
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