Example #1
0
 def __init__(self, trainer=svr.LinearSVR(), error_fx=sklm.r2_score):
     
     #super(RegressionMeasure, self).__init__()
     Measure.__init__(self)
     self.trainer = trainer
     self.fx = error_fx
     self.mse = sklm.mean_squared_error
Example #2
0
    def __init__(self, trainer=svr.LinearSVR(), error_fx=sklm.r2_score):

        #super(RegressionMeasure, self).__init__()
        Measure.__init__(self)
        self.trainer = trainer
        self.fx = error_fx
        self.mse = sklm.mean_squared_error
Example #3
0
 def __init__(self, p=0.05):
     
     Measure.__init__(self)
     #self.space = 'targets'
     self.p = p
Example #4
0
 def __init__(self):
     Measure.__init__(self)
     self.params = dict()
Example #5
0
 def train(self, ds):
     Measure.train(self, ds)
     self.trainer.fit(ds.samples, ds.targets)
Example #6
0
 def train(self, ds):
     Measure.train(self, ds)
     self.trainer.transform(ds.samples, ds.targets)
Example #7
0
    def __init__(self, p=0.05):

        Measure.__init__(self)
        #self.space = 'targets'
        self.p = p
Example #8
0
 def train(self, ds):
     Measure.train(self, ds)
     self.trainer.transform(ds.samples, ds.targets)
Example #9
0
 def __init__(self):
     Measure.__init__(self)
     self.params = dict()