Fix type errors by converting all hyperopt methods to instance methods

This commit is contained in:
Matthias
2021-04-01 06:47:23 +02:00
parent 5e5b11d4d6
commit 5acdc9bf42
2 changed files with 14 additions and 22 deletions

View File

@@ -101,7 +101,8 @@ class FloatParameter(BaseParameter):
opt_range: Sequence[float]
def __init__(self, low: Union[float, Sequence[float]], high: Optional[float] = None, *,
default: float, space: Optional[str] = None, optimize: bool = True, load: bool = True, **kwargs):
default: float, space: Optional[str] = None,
optimize: bool = True, load: bool = True, **kwargs):
"""
Initialize hyperopt-optimizable parameter.
:param low: Lower end (inclusive) of optimization space or [low, high].