diff --git a/cox/utils.py b/cox/utils.py index 880c9ec..4245e37 100644 --- a/cox/utils.py +++ b/cox/utils.py @@ -5,6 +5,7 @@ import dill as pickle import codecs import itertools +import pprint def has_tensorboard(dirname): ''' @@ -126,7 +127,8 @@ def __len__ (self): return len(self.params) def __str__(self): - return json.dumps(self.params, indent=2) + pp = pprint.PrettyPrinter() + return pp.pformat(self.params) def __repr__(self): return str(self)