1a2462f18707e04f294224053473668820111cf5,PyPi/approximators/regressor.py,Regressor,predict,#Regressor#Any#,54

Before Change


        
        if x.ndim == 1:
            x = np.expand_dims(x, axis=0)
        elif x.ndim > 2:
            raise ValueError("Training set dimension not suitable for the "
                             "regressor.")

        if self.features:
            x = self.features.transform(x)

After Change



        if isinstance(x, list):
            if self.features:
                x[0] = self.features.transform(x[0])

            if self.input_scaled:
                self.pre_x = preprocessing.StandardScaler()
                x[0] = self.pre_x.transform(x[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 1a2462f18707e04f294224053473668820111cf5
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/approximators/regressor.py
Class Name: Regressor
Method Name: predict


Project Name: ysig/GraKeL
Commit Name: 0e84313d49f4b3f5aef0e0d558ecc34e271b2ad5
Time: 2018-01-24
Author: y.siglidis@gmail.com
File Name: grakel/graph_kernels.py
Class Name: GraphKernel
Method Name: transform


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 37f1544cb19794294029aa64e7b119b69ef09f51
Time: 2018-11-20
Author: contact@againstthecurrent.ch
File Name: category_encoders/target_encoder.py
Class Name: TargetEncoder
Method Name: transform