예제 #1
0
 def setUp(self):
     class Stub(object):
         obj_grads = [10,0]
         def add_observer(self, m, f):
             self.obs = m
             self.obs_f = f
         def objective_function(self):
             return 10
             
     self.vo = VerboseOptimization(Stub(), opt_bfgs(), -10, verbose=True)