Beispiel #1
0
 def __init__(self, conf):
     Metamodel.__init__(self)
     self.conf = conf
     self.interpolators = []
     for m in self.conf.modules:
         self.interpolators.append(LinearRegression())
     self.inputs = []
     self.outputs =[]
Beispiel #2
0
 def __init__(self, conf):
     Metamodel.__init__(self)
     self.conf = conf
     self.svrs = []
     self.inputs = []
     self.outputs = []
     for m in conf.modules:
         #self.svrs.append(SVR(kernel='rbf', C=1e3, gamma=0.1))
         self.svrs.append(SVR(kernel='linear', C=1.0))
         self.inputs.append([])
         self.outputs.append([])
 def __init__(self, conf):
     Metamodel.__init__(self)
     self.conf = conf
     self.ds = []
     self.nets = []
     self.trainers = []
     for m in conf.modules:
         input = conf.modNum
         output = 1
         self.ds.append(SupervisedDataSet(input, output))
         self.nets.append(buildNetwork(input, 1, output, hiddenclass=LinearLayer, outclass=LinearLayer))
         self.trainers.append(RPropMinusTrainer(self.nets[len(self.nets)-1]))
Beispiel #4
0
 def __init__(self):
     Metamodel.__init__(self)
Beispiel #5
0
 def add(self, system):
     if not Metamodel.add(self, system):
         return
 def add(self, system):
     if not Metamodel.add(self, system):
         return
     for m in system.modules:
         self.ds[m.num].addSample(self.sys2array(system), m.time)
Beispiel #7
0
 def add(self, system):
     Metamodel.add(self, system)
Beispiel #8
0
 def add(self, system):
     if not Metamodel.add(self, system):
         return
     for m in system.modules:
         self.inputs[m.num].append(self.sys2array(system))
         self.outputs[m.num].append(m.time)
 def __init__(self,k):
     Metamodel.__init__(self)
     self.k = k