Deep learning tools including RBM and DBM