Beispiel #1
0
 def todoct(self):
     d = Optimizer.todict()
     for attr in self._dump_attr:
         if hasattr(self, attr):
             d.update(attr, getattr(self, attr))
     return d
Beispiel #2
0
 def todict(self):
     d = Optimizer.todict(self)
     if hasattr(self, 'maxstep'):
         d.update(maxstep=self.maxstep)
     return d
Beispiel #3
0
 def todict(self):
     d = Optimizer.todict(self)
     if hasattr(self, 'maxstep'):
         d.update(maxstep=self.maxstep)
     return d
Beispiel #4
0
 def todict(self):
     d = Optimizer.todict(self)
     if hasattr(self, 'stepsize'):
         d.update(stepsize=self.stepsize)
     return d