b39db6e2bf0c806554578b5c9895d9b7ef6bd48c,Orange/statistics/util.py,,_count_nans_per_row_sparse,#Any#Any#,13

Before Change


    counts -= nnz_per_row
    if weights is not None:
        counts *= weights
    return np.sum(counts)


def bincount(X, max_val=None, weights=None, minlength=None):
    Return counts of values in array X.

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

    return counts


def bincount(X, max_val=None, weights=None, minlength=None):
    Return counts of values in array X.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: sympy/sympy
Commit Name: 24602abe9b89c6b22f77804636de2f109f1c6052
Time: 2020-07-04
Author: smitlunagariya.mat18@itbhu.ac.in
File Name: sympy/stats/symbolic_multivariate_probability.py
Class Name: ExpectationMatrix
Method Name: expand


Project Name: sympy/sympy
Commit Name: 24602abe9b89c6b22f77804636de2f109f1c6052
Time: 2020-07-04
Author: smitlunagariya.mat18@itbhu.ac.in
File Name: sympy/stats/symbolic_probability.py
Class Name: Expectation
Method Name: expand