def _vp(self, value):
        num_weights = len(self.layer_sizes) - 1
        if not hasattr(value, '__iter__'):
            value = [value] * num_weights
        return list(value)
dataset/ETHPy150Open dnouri/nolearn/nolearn/dbn.py/DBN._vp/original