weight cost in rbm