Fix formatting issue

This commit is contained in:
Matthias 2021-05-24 07:48:36 +02:00
parent 6f990c5976
commit af16614bf2

View File

@ -163,7 +163,8 @@ class Hyperopt:
:param epoch: result dictionary for this epoch.
"""
with self.results_file.open('a') as f:
rapidjson.dump(epoch, f, default=str, number_mode=rapidjson.NM_NATIVE | rapidjson.NM_NAN)
rapidjson.dump(epoch, f, default=str,
number_mode=rapidjson.NM_NATIVE | rapidjson.NM_NAN)
f.write("\n")
self.num_epochs_saved += 1