d2cc0fb493b359fcbcd25410d1ddfe50954766aa,Orange/classification/linear_regression.py,LinearRegressionLearner,fit,#LinearRegressionLearner#Any#Any#Any#,6

Before Change



class LinearRegressionLearner(classification.Fitter):
    def fit(self, X, Y, W):
        clf = LinearRegression()
        return LinearRegressionPredictor(clf.fit(X, Y.reshape(-1)))


class LinearRegressionPredictor(classification.Model):

After Change


            raise ValueError("Linear regression does not support "
                             "multi-target classification")

        if np.isnan(np.sum(X)) or np.isnan(np.sum(Y)):
            raise ValueError("Linear regression does not support "
                             "unknown values")

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biolab/orange3
Commit Name: d2cc0fb493b359fcbcd25410d1ddfe50954766aa
Time: 2013-06-03
Author: jure.zbontar@gmail.com
File Name: Orange/classification/linear_regression.py
Class Name: LinearRegressionLearner
Method Name: fit


Project Name: astroML/astroML
Commit Name: 4e70cb5fc9a9494e866ccd7d2e1a9046091b6337
Time: 2018-11-16
Author: bsipocz@gmail.com
File Name: astroML/density_estimation/gauss_mixture.py
Class Name: GaussianMixture1D
Method Name: __init__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 46ad98c1b619502c926c657c1a4c4276d2fd1f79
Time: 2018-05-01
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/defences/adversarial_trainer_unittest.py
Class Name: TestAdversarialTrainer
Method Name: test_shared_model_mnist