Esempio n. 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
Esempio n. 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
Esempio n. 3
0
 def __init__(self, p=0.05):
     
     Measure.__init__(self)
     #self.space = 'targets'
     self.p = p
Esempio n. 4
0
 def __init__(self):
     Measure.__init__(self)
     self.params = dict()
Esempio n. 5
0
 def train(self, ds):
     Measure.train(self, ds)
     self.trainer.fit(ds.samples, ds.targets)
Esempio n. 6
0
 def train(self, ds):
     Measure.train(self, ds)
     self.trainer.transform(ds.samples, ds.targets)
Esempio n. 7
0
    def __init__(self, p=0.05):

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