Ejemplo n.º 1
0
 def cost_fun(self, params, sig_sq_2=1):
     cost = st_mat_cost_fun(
         self.model, self.scene, st_get_transform(params, self.transform_shape, self.transform_tril_ind), sig_sq_2
     )
     if self.counter % 1000 == 0:
         print "Iteration " + str(self.counter) + ": " + str(cost)
     self.counter += 1
     return cost
Ejemplo n.º 2
0
 def cost_fun(self, transform, sig_sq_2=2):
     return st_mat_cost_fun(self.model, self.scene, transform, sig_sq_2)