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

Before Change


            The prediction of the model.
        
        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.")

After Change


            assert x[0].ndim == 2 and x[1].ndim == 2
            assert x[0].shape[0] == x[1].shape[0]

            x = np.concatenate((x[0], x[1]), axis=1)

        if isinstance(x, list):
            if self.features:
                x[0] = self.features.transform(x[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: 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: fit


Project Name: broadinstitute/keras-rcnn
Commit Name: 3c397401a06de998cd99a6da2e97d4daecb44c9c
Time: 2020-05-19
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/common.py
Class Name:
Method Name: bbox_transform_inv


Project Name: broadinstitute/keras-rcnn
Commit Name: 3c397401a06de998cd99a6da2e97d4daecb44c9c
Time: 2020-05-19
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/common.py
Class Name:
Method Name: clip