mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 02:00:12 +08:00
[tune] Allow None values in TBX logger (#12262)
This commit is contained in:
@@ -199,8 +199,8 @@ class TBXLogger(Logger):
|
||||
{"a": {"b": 1, "c": 2}} -> {"a/b": 1, "a/c": 2}
|
||||
"""
|
||||
|
||||
# NoneType is not supported on the last TBX release yet.
|
||||
VALID_HPARAMS = (str, bool, np.bool8, int, np.integer, float, list)
|
||||
VALID_HPARAMS = (str, bool, np.bool8, int, np.integer, float, list,
|
||||
type(None))
|
||||
|
||||
def _init(self):
|
||||
try:
|
||||
|
||||
@@ -147,7 +147,8 @@ class LoggerSuite(unittest.TestCase):
|
||||
}
|
||||
},
|
||||
"d": np.int64(1),
|
||||
"e": np.bool8(True)
|
||||
"e": np.bool8(True),
|
||||
"f": None,
|
||||
}
|
||||
t = Trial(
|
||||
evaluated_params=config, trial_id="tbx", logdir=self.test_dir)
|
||||
|
||||
Reference in New Issue
Block a user