b39db6e2bf0c806554578b5c9895d9b7ef6bd48c,Orange/statistics/util.py,,_count_nans_per_row_sparse,#Any#Any#,13
Before Change
def _count_nans_per_row_sparse(X, weights):
Count the number of nans (undefined) values per row.
items_per_row = 1 if X.ndim == 1 else X.shape[1]
counts = np.ones(X.shape[0]) * items_per_row
nnz_per_row = np.bincount(X.indices, minlength=len(counts))
counts -= nnz_per_row
if weights is not None:
After Change
def _count_nans_per_row_sparse(X, weights):
Count the number of nans (undefined) values per row.
counts = np.fromiter((np.isnan(row.data).sum() for row in X), dtype=np.float)
if weights is not None:
counts *= weights
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: biolab/orange3
Commit Name: b39db6e2bf0c806554578b5c9895d9b7ef6bd48c
Time: 2017-09-09
Author: pavlin.g.p@gmail.com
File Name: Orange/statistics/util.py
Class Name:
Method Name: _count_nans_per_row_sparse
Project Name: etal/cnvkit
Commit Name: db6ba6b84fffc1affc51029adb70f02b263b66ac
Time: 2018-06-11
Author: eric.talevich@gmail.com
File Name: cnvlib/segmetrics.py
Class Name:
Method Name: do_segmetrics
Project Name: biocore/scikit-bio
Commit Name: 52ae438ada955209e14c9c86ba56e3c81347930e
Time: 2014-06-09
Author: jai.rideout@gmail.com
File Name: skbio/math/stats/distance/_mantel.py
Class Name:
Method Name: mantel