4726635986dc0c43de16b73c9ff69ec5189849d5,snorkel/features.py,Featurizer,fit_transform,#Featurizer#Any#,104

Before Change



    def fit_transform(self, candidates):
        Assembles the set of features to be used, and applies this transformation to the candidates
        feature_generators = self._match_contexts(self._preprocess_candidates(candidates))

        // Assemble and return the sparse feature matrix
        f_index = defaultdict(list)
        for i,f in itertools.chain(*feature_generators):
            f_index[f].append(i)

        // Assemble and return sparse feature matrix

After Change


        Assembles the set of features to be used, and applies this transformation to the candidates
        // Assemble and return the sparse feature matrix
        f_index = defaultdict(list)
        for f, i in self.get_feats(candidates):
            f_index[f].append(i)

        // Assemble and return sparse feature matrix
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: snorkel-team/snorkel
Commit Name: 4726635986dc0c43de16b73c9ff69ec5189849d5
Time: 2016-08-10
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: Featurizer
Method Name: fit_transform


Project Name: snorkel-team/snorkel
Commit Name: 4726635986dc0c43de16b73c9ff69ec5189849d5
Time: 2016-08-10
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: Featurizer
Method Name: transform


Project Name: snorkel-team/snorkel
Commit Name: 9307ad629516b53643b0888587635b0b4a56b999
Time: 2016-08-10
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: Featurizer
Method Name: fit_transform


Project Name: snorkel-team/snorkel
Commit Name: 9307ad629516b53643b0888587635b0b4a56b999
Time: 2016-08-10
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: Featurizer
Method Name: transform