prototyped some of the RBM cross entropy method