Exemplo n.º 1
0
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
Exemplo n.º 2
0
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)))
Exemplo n.º 3
0
def hp_qlognormal(label, *args, **kwargs):
    return scope.float(
        scope.hyperopt_param(label, scope.qlognormal(*args, **kwargs)))
Exemplo n.º 4
0
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)))
Exemplo n.º 5
0
def hp_qlognormal(label, *args, **kwargs):
    return scope.float(
            scope.hyperopt_param(label,
                scope.qlognormal(*args, **kwargs)))