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
def cost_fun(self, transform, sig_sq_2=2): return st_mat_cost_fun(self.model, self.scene, transform, sig_sq_2)