add - class to support learning RBM layers of a deep network.