First RBM train code.