f7ed8f1b43044d87a3f527b75e1ad9e9e6cb2894,methods/shogun/linear_regression.py,SHOGUN_LINEARREGRESSION,metric,#SHOGUN_LINEARREGRESSION#,41

Before Change


    metric["runtime"] = totalTimer.ElapsedTime()

    if len(self.data) == 3:
      confusionMatrix = Metrics.ConfusionMatrix(self.data[2], predictions)
      metric["ACC"] = Metrics.AverageAccuracy(confusionMatrix)
      metric["MCC"] = Metrics.MCCMultiClass(confusionMatrix)
      metric["Precision"] = Metrics.AvgPrecision(confusionMatrix)

After Change


      elif self.solver == "cplex":
        model.set_solver_type(ST_CPLEX)

      elif self.solver == "glpk":
        model.set_solver_type(ST_GLPK)

      elif self.solver == "newton":
        model.set_solver_type(ST_NEWTON)

      elif self.solver == "direct":
        model.set_solver_type(ST_DIRECT)

      elif self.solver == "elasticnet":
        model.set_solver_type(ST_ELASTICNET)

      elif self.solver == "block_norm":
        model.set_solver_type(ST_BLOCK_NORM)

      else:
        raise ValueError("Provided solver not supported by current benchmark")

      model.train()

      if len(self.data) >= 2:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: mlpack/benchmarks
Commit Name: f7ed8f1b43044d87a3f527b75e1ad9e9e6cb2894
Time: 2019-04-24
Author: rukman.sai2@gmail.com
File Name: methods/shogun/linear_regression.py
Class Name: SHOGUN_LINEARREGRESSION
Method Name: metric


Project Name: nilearn/nilearn
Commit Name: 48282d57a0f11094d71c7310898ab347e6b847b3
Time: 2019-03-25
Author: gilles.de.hollander@gmail.com
File Name: nilearn/signal.py
Class Name:
Method Name: clean


Project Name: ericmjl/pyjanitor
Commit Name: 4da1369fe0d4e8eb693ea96064c229ed5248f004
Time: 2019-10-09
Author: zbarry@protonmail.com
File Name: janitor/functions.py
Class Name:
Method Name: deconcatenate_column