mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 03:02:08 +08:00
[tune] fix doc typo and also make sure to clean "/" from config (#1476)
This commit is contained in:
@@ -128,7 +128,7 @@ def _format_vars(resolved_vars):
|
||||
last_string = False
|
||||
pieces.append(k)
|
||||
pieces.reverse()
|
||||
out.append("_".join(pieces) + "=" + _clean_value(value))
|
||||
out.append(_clean_value("_".join(pieces)) + "=" + _clean_value(value))
|
||||
return ",".join(out)
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ def _clean_value(value):
|
||||
if isinstance(value, float):
|
||||
return "{:.5}".format(value)
|
||||
else:
|
||||
return str(value)
|
||||
return str(value).replace("/", "_")
|
||||
|
||||
|
||||
def _generate_variants(spec):
|
||||
|
||||
Reference in New Issue
Block a user