mirror of
https://github.com/microsoft/autogen.git
synced 2025-11-14 00:54:58 +00:00
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:
parent
1560a6e52a
commit
840e3fc104
@ -426,7 +426,7 @@ try:
|
|||||||
from ray.tune import (uniform, quniform, choice, randint, qrandint, randn,
|
from ray.tune import (uniform, quniform, choice, randint, qrandint, randn,
|
||||||
qrandn, loguniform, qloguniform)
|
qrandn, loguniform, qloguniform)
|
||||||
except:
|
except:
|
||||||
from .sample import (uniform, quniform, choice, randint, qrandint, randn,
|
from ..tune.sample import (uniform, quniform, choice, randint, qrandint, randn,
|
||||||
qrandn, loguniform, qloguniform)
|
qrandn, loguniform, qloguniform)
|
||||||
|
|
||||||
class BlendSearchTuner(BlendSearch, NNITuner):
|
class BlendSearchTuner(BlendSearch, NNITuner):
|
||||||
@ -470,7 +470,7 @@ try:
|
|||||||
search_space: JSON object created by experiment owner
|
search_space: JSON object created by experiment owner
|
||||||
'''
|
'''
|
||||||
config = {}
|
config = {}
|
||||||
for key, value in search_space:
|
for key, value in search_space.items():
|
||||||
v = value.get("_value")
|
v = value.get("_value")
|
||||||
_type = value['_type']
|
_type = value['_type']
|
||||||
if _type == 'choice':
|
if _type == 'choice':
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
__version__ = "0.2.7"
|
__version__ = "0.2.8"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user