Modify RBM example.