Implement load/save for DBNs and joint density RBM.