def test_qlognormal_never_0(): rng = np.random.RandomState(234) s = scope.qlognormal(-5, 3, 0.1) recursive_set_rng_kwarg(s, rng) results = [rec_eval(s) for i in range(100)] assert min(results) == 0.1 assert max(results) != 0.1
def hp_qlognormal(label, *args, **kwargs): if not isinstance(label, basestring): raise TypeError("require string label") return scope.float(scope.hyperopt_param(label, scope.qlognormal(*args, **kwargs)))
def hp_qlognormal(label, *args, **kwargs): return scope.float( scope.hyperopt_param(label, scope.qlognormal(*args, **kwargs)))
def hp_qlognormal(label, *args, **kwargs): if not isinstance(label, basestring): raise TypeError('require string label') return scope.float( scope.hyperopt_param(label, scope.qlognormal(*args, **kwargs)))