Imported from https://github.com/PurdueMINDS/MCLV-RBM