def propdown(self, hid, subsample_ids=None, fw=False):
        W = self.fW + self.W if fw else self.W
        vbias = self.vbias
        if subsample_ids is not None:
            W = W[:, subsample_ids]
            vbias = vbias[subsample_ids]
        pre_non_lin = hid.dot(W) + vbias
        non_lin = sigmoid(pre_non_lin)
        sample = sample_bernoulli(non_lin)
        return (sample, non_lin, pre_non_lin)
Return a context manager used by captured_stdout/stdin/stderr
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Miroslaw/sparserbm.py/SparseRBM.propdown--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/test/support.py/captured_output