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 get_transform(self, params): return st_get_transform(params, self.transform_shape, self.transform_tril_ind)