3842da1683baeeb426ca84d04617f84d99f8183c,autosklearn/metalearning/metafeatures/metafeatures.py,NumberOfInstancesWithMissingValues,_calculate_sparse,#NumberOfInstancesWithMissingValues#Any#Any#Any#,190

Before Change


            num_missing = [
                np.sum(missing.data[missing.indptr[i]:missing.indptr[i + 1]])
                                    for i in range(missing.shape[0])]
        elif scipy.sparse.isspmatrix_csc(missing):
            num_missing = [np.sum(missing.data[missing.indices == i])
                           for i in range(missing.shape[0])]

        return float(np.sum([1 if num > 0 else 0 for num in num_missing]))

After Change



    def _calculate_sparse(self, X, y, categorical):
        missing = helper_functions.get_value("MissingValues")
        new_missing = missing.tocsr()
        num_missing = [
            np.sum(new_missing.data[new_missing.indptr[i]:new_missing.indptr[i + 1]])
                                for i in range(new_missing.shape[0])]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: automl/auto-sklearn
Commit Name: 3842da1683baeeb426ca84d04617f84d99f8183c
Time: 2016-01-19
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/metalearning/metafeatures/metafeatures.py
Class Name: NumberOfInstancesWithMissingValues
Method Name: _calculate_sparse


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: countnans


Project Name: scipy/scipy
Commit Name: 45d980c8d1adf474bdf0872a98e761136acde314
Time: 2015-02-08
Author: mclee@aftercollege.com
File Name: scipy/sparse/data.py
Class Name: _data_matrix
Method Name: power