Fix bug in NNI tuner (#34)

* fix bug in nni tuner

* Update version.py

Co-authored-by: liuzhe <zhe.liu@microsoft.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
This commit is contained in:
liuzhe-lz 2021-03-07 02:38:33 +08:00 committed by GitHub
parent 1560a6e52a
commit 840e3fc104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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':

View File

@ -1 +1 @@
__version__ = "0.2.7"
__version__ = "0.2.8"