diff --git a/flaml/searcher/blendsearch.py b/flaml/searcher/blendsearch.py index f3f9590b6..231ef2cfb 100644 --- a/flaml/searcher/blendsearch.py +++ b/flaml/searcher/blendsearch.py @@ -426,7 +426,7 @@ try: from ray.tune import (uniform, quniform, choice, randint, qrandint, randn, qrandn, loguniform, qloguniform) except: - from .sample import (uniform, quniform, choice, randint, qrandint, randn, + from ..tune.sample import (uniform, quniform, choice, randint, qrandint, randn, qrandn, loguniform, qloguniform) class BlendSearchTuner(BlendSearch, NNITuner): @@ -470,7 +470,7 @@ try: search_space: JSON object created by experiment owner ''' config = {} - for key, value in search_space: + for key, value in search_space.items(): v = value.get("_value") _type = value['_type'] if _type == 'choice': diff --git a/flaml/version.py b/flaml/version.py index 6cd38b746..c49a95c35 100644 --- a/flaml/version.py +++ b/flaml/version.py @@ -1 +1 @@ -__version__ = "0.2.7" +__version__ = "0.2.8"