660d487863cec6e26cdb0184f63a189297577546,kaggler/preprocessing/data.py,OneHotEncoder,fit_transform,#OneHotEncoder#Any#Any#,307

Before Change


                else:
                    X_new = sparse.hstack((X_new, X_col))

            logging.debug("{} --> {} features".format(col, self.label_encoders[col][1]))

        return X_new

After Change



        self.label_encoder.fit(X)

        return self.transform(X)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: jeongyoonlee/Kaggler
Commit Name: 660d487863cec6e26cdb0184f63a189297577546
Time: 2015-10-11
Author: jeong.@conversionlogic.com
File Name: kaggler/preprocessing/data.py
Class Name: OneHotEncoder
Method Name: fit_transform


Project Name: IndicoDataSolutions/finetune
Commit Name: 2f1f4adb504fd6a91027a091a4e5e911a4d7c905
Time: 2018-08-03
Author: benlt@hotmail.co.uk
File Name: finetune/datasets/mcdonalds_yelp_sentiment.py
Class Name:
Method Name:


Project Name: biolab/orange3
Commit Name: ee27c11166d39aafb9bf6196a037346c73ed2ae6
Time: 2015-02-20
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/preprocess/transformation.py
Class Name: Transformation
Method Name: __call__