mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-16 03:35:06 +00:00
36 lines
805 B
Python
36 lines
805 B
Python
try:
|
|
from ray import __version__ as ray_version
|
|
|
|
assert ray_version >= "1.10.0"
|
|
from ray.tune import (
|
|
uniform,
|
|
quniform,
|
|
choice,
|
|
randint,
|
|
qrandint,
|
|
randn,
|
|
qrandn,
|
|
loguniform,
|
|
qloguniform,
|
|
lograndint,
|
|
qlograndint,
|
|
)
|
|
except (ImportError, AssertionError):
|
|
from .sample import (
|
|
uniform,
|
|
quniform,
|
|
choice,
|
|
randint,
|
|
qrandint,
|
|
randn,
|
|
qrandn,
|
|
loguniform,
|
|
qloguniform,
|
|
lograndint,
|
|
qlograndint,
|
|
)
|
|
from .tune import run, report, INCUMBENT_RESULT
|
|
from .sample import polynomial_expansion_set
|
|
from .sample import PolynomialExpansionSet, Categorical, Float
|
|
from .trial import Trial
|