Public fork of my higher-order ssRBM code