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

Before Change


            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: ANSSI-FR/SecuML
Commit Name: 39efccc696a1c20745a52cc50935cdc24f92230d
Time: 2019-05-09
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/core/classif/classifiers/__init__.py
Class Name: Classifier
Method Name: _predict_streaming


Project Name: pyannote/pyannote-audio
Commit Name: 7a532d4a21660a5c45ff48008124732f01ed0bc5
Time: 2017-11-22
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/base.py
Class Name: SequenceLabeling
Method Name: apply