notes on RBMs