def rbm_obj(params, inputs): return rbm.cd(params, inputs, rbm.sample_h, rbm.sample_v, rbm.neg_free_energy_grad, weight_decay)
def f(params, inputs): return rbm.cd(params, inputs, grbm.sample_h_noisy_relu, grbm.sample_v, neg_free_energy_grad)