0df2cf25a625d05b7590efdbbe335498b93d694d,finetune/target_encoders.py,OrdinalRegressionEncoder,fit,#OrdinalRegressionEncoder#Any#,77

Before Change


        
    def fit(self, x):
        x = np.array(x)
        rank = len(x.shape)
        if rank == 1:
            x = np.expand_dims(x, 1)
        self.fit_transform(x)
        return self

After Change


        return np.array(x, dtype=np.int32).reshape(-1, 1)

    def fit(self, x):
        super().fit(self._force_2d(x))
        self.num_outputs = len(self.categories_[0]) - 1
        return self

    def transform(self, x):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 0df2cf25a625d05b7590efdbbe335498b93d694d
Time: 2019-01-17
Author: madison@indico.io
File Name: finetune/target_encoders.py
Class Name: OrdinalRegressionEncoder
Method Name: fit


Project Name: automl/auto-sklearn
Commit Name: 42f8c1c7afcc97d797366786c876fac610ca5147
Time: 2016-01-09
Author: eggenspk@informatik.uni-freiburg.de
File Name: autosklearn/pipeline/components/feature_preprocessing/extra_trees_preproc_for_classification.py
Class Name: ExtraTreesPreprocessor
Method Name: fit


Project Name: alexandrebarachant/pyRiemann
Commit Name: 9cd7469cb719fbf86f94c96e15bf2c7720fca3b9
Time: 2016-05-10
Author: alexandre.barachant@gmail.com
File Name: pyriemann/stats.py
Class Name: PermutationTest
Method Name: test