[tune] fix doc typo and also make sure to clean "/" from config (#1476)

This commit is contained in:
Eric Liang
2018-01-26 21:51:07 -08:00
committed by Richard Liaw
parent 3195c6aa63
commit 8c96c34bb3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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):