示例#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
示例#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)))
示例#3
0
def hp_qlognormal(label, *args, **kwargs):
    return scope.float(
        scope.hyperopt_param(label, scope.qlognormal(*args, **kwargs)))
示例#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)))
示例#5
0
def hp_qlognormal(label, *args, **kwargs):
    return scope.float(
            scope.hyperopt_param(label,
                scope.qlognormal(*args, **kwargs)))