a60c0d90de304b8d2768da0e2110527edea96910,methods/shogun/linear_ridge_regression.py,LinearRidgeRegression,RunMetrics,#LinearRidgeRegression#Any#,108

Before Change



      X, y = SplitTrainData(self.dataset)
      tau = re.search("-t (\d+)", options)
      tau = 1.0 if not tau else int(tau.group(1))
      model = LRR(tau, RealFeatures(X.T), RegressionLabels(y))
      model.train()

      testData = LoadDataset(self.dataset[1])

After Change


        raise Exception("missing parameter")

      if len(options) > 0:
        Log.Fatal("Unknown parameters: " + str(options))
        raise Exception("unknown parameters")
      model = LRR(tau, RealFeatures(X.T), RegressionLabels(y))
      model.train()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mlpack/benchmarks
Commit Name: a60c0d90de304b8d2768da0e2110527edea96910
Time: 2017-06-29
Author: ryan@ratml.org
File Name: methods/shogun/linear_ridge_regression.py
Class Name: LinearRidgeRegression
Method Name: RunMetrics


Project Name: nerox8664/pytorch2keras
Commit Name: 198d7eee040d0eb3c5183cdf50a6350db53a5623
Time: 2019-01-29
Author: nerox8664@gmail.com
File Name: pytorch2keras/converter.py
Class Name:
Method Name: get_leaf_id


Project Name: mlpack/benchmarks
Commit Name: a60c0d90de304b8d2768da0e2110527edea96910
Time: 2017-06-29
Author: ryan@ratml.org
File Name: methods/scikit/linear_ridge_regression.py
Class Name: LinearRidgeRegression
Method Name: RunMetrics