Пример #1
0
 def __init__(self):
     d = dict(
         # -- alphabetical order
         lu = scope.loguniform(-2, 2),
         qlu = scope.qloguniform(np.log(0.01), np.log(20), 2),
         qu = scope.quniform(-4.999, 5, 1),
         u = scope.uniform(0, 10),
         )
     base.Bandit.__init__(self, as_apply(d))
Пример #2
0
def hp_qloguniform(label, *args, **kwargs):
    if not isinstance(label, basestring):
        raise TypeError("require string label")
    return scope.float(scope.hyperopt_param(label, scope.qloguniform(*args, **kwargs)))
Пример #3
0
def hp_qloguniform(label, *args, **kwargs):
    return scope.float(
        scope.hyperopt_param(label, scope.qloguniform(*args, **kwargs)))
Пример #4
0
def hp_qloguniform(label, *args, **kwargs):
    if not isinstance(label, basestring):
        raise TypeError('require string label')
    return scope.float(
        scope.hyperopt_param(label, scope.qloguniform(*args, **kwargs)))
Пример #5
0
def hp_qloguniform(label, *args, **kwargs):
    return scope.float(
            scope.hyperopt_param(label,
                scope.qloguniform(*args, **kwargs)))