39efccc696a1c20745a52cc50935cdc24f92230d,secuml/exp/data/features.py,FeaturesFromExp,get_matrix,#,50

Before Change


        if not sparse:
            iterator = FeaturesFromExp.get_matrix_iterator(features_files,
                                                           num_instances)
            for row in iterator:
                if features is None:
                    features = row
                else:
                    features = np.vstack((features, row))
        else:
            for _, f_path, f_mask in features_files:
                indices = np.where(f_mask)[0]
                matrix = load_npz(f_path)[:, indices]

After Change


        if not sparse:
            iterator = FeaturesFromExp.get_matrix_iterator(features_files,
                                                           num_instances)
            features = np.vstack(tuple(r for r in iterator))
        else:
            features = None
            for _, f_path, f_mask in features_files:
                indices = np.where(f_mask)[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ANSSI-FR/SecuML
Commit Name: 39efccc696a1c20745a52cc50935cdc24f92230d
Time: 2019-05-09
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/exp/data/features.py
Class Name: FeaturesFromExp
Method Name: get_matrix


Project Name: scikit-image/scikit-image
Commit Name: f8d9a6c144ef84bad2478a4ba4eedb1c559274e0
Time: 2020-11-11
Author: rfezzani@gmail.com
File Name: skimage/_shared/coord.py
Class Name:
Method Name: ensure_spacing


Project Name: librosa/librosa
Commit Name: c8280cd73ec4782188ab1d8d4d7f4ce349a07f6a
Time: 2016-11-02
Author: brian.mcfee@nyu.edu
File Name: tests/test_effects.py
Class Name:
Method Name: test_trim