cd840732e126d34b482f50140828cf93427ac8b5,sklearn/pipeline.py,FeatureUnion,transform,#FeatureUnion#Any#,973

Before Change


            // All transformers are None
            return np.zeros((X.shape[0], 0))
        if any(sparse.issparse(f) for f in Xs):
            Xs = sparse.hstack(Xs).tocsr()
        else:
            Xs = np.hstack(Xs)
        return Xs

    def _update_transformer_list(self, transformers):
        transformers = iter(transformers)
        self.transformer_list[:] = [(name, old if old == "drop"

After Change


            // All transformers are None
            return np.zeros((X.shape[0], 0))

        return self._hstack(Xs)

    def _hstack(self, Xs):
        if any(sparse.issparse(f) for f in Xs):
            Xs = sparse.hstack(Xs).tocsr()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: cd840732e126d34b482f50140828cf93427ac8b5
Time: 2020-07-08
Author: cary.goltermann@gmail.com
File Name: sklearn/pipeline.py
Class Name: FeatureUnion
Method Name: transform


Project Name: RaRe-Technologies/gensim
Commit Name: c55d1b295cb6717ba6494917b88183e8d3f284a9
Time: 2010-09-05
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/matutils.py
Class Name:
Method Name: corpus2csc


Project Name: RaRe-Technologies/gensim
Commit Name: cac5f014c09193f7a5ad6b71e4012defa0a96baa
Time: 2010-09-05
Author: radimrehurek@seznam.cz
File Name: src/gensim/matutils.py
Class Name:
Method Name: corpus2csc


Project Name: scikit-learn/scikit-learn
Commit Name: cd840732e126d34b482f50140828cf93427ac8b5
Time: 2020-07-08
Author: cary.goltermann@gmail.com
File Name: sklearn/pipeline.py
Class Name: FeatureUnion
Method Name: fit_transform