1c7a87e96c4b6180e423586193c26e5ccd2f6bfd,sklearn_pandas/__init__.py,DataFrameMapper,transform,#DataFrameMapper#,117

Before Change


                // for hstack.
                fea = fea.toarray()

            if len(fea.shape) == 1:
                fea = np.array([fea]).T
            extracted.append(fea)

        // combine the feature outputs into one array.
        // at this point we lose track of which features

After Change


                    for transformer in transformers:
                        extracted.append(self._handle_feature(transformer.transform(self._get_col_subset(X, columns))))
                else:
                    extracted.append(self._handle_feature(transformers.transform(self._get_col_subset(X, columns))))
            else:
                extracted.append(self._handle_feature(self._get_col_subset(X, columns)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: 1c7a87e96c4b6180e423586193c26e5ccd2f6bfd
Time: 2015-08-02
Author: mahmoud@thehumangeo.com
File Name: sklearn_pandas/__init__.py
Class Name: DataFrameMapper
Method Name: transform


Project Name: agisoft-llc/metashape-scripts
Commit Name: e5304d9c2a9e3f710914675b7727ec84a80274d8
Time: 2020-02-18
Author: polarnick@agisoft.com
File Name: src/align_model_to_model.py
Class Name: AlignModelDlg
Method Name: align


Project Name: ncullen93/torchsample
Commit Name: 15ac1c2bb2627bb8fbb89b0b64709e9a50be02fd
Time: 2017-05-13
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/tensor_transforms.py
Class Name: Compose
Method Name: __call__