def sampler(self, probabilities):
        result = probabilities > random.rand(self.rbm.hiddenDim)
        return result.astype('int32')
dataset/ETHPy150Open pybrain/pybrain/pybrain/unsupervised/trainers/rbm.py/RbmBernoulliTrainer.sampler/original