FIX: make BernoulliRBM doctest pass