ai: json.dumps

This commit is contained in:
Starbeamrainbowlabs 2022-09-01 16:21:52 +01:00
parent 940f7aa1b5
commit 17d42fe899
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -37,7 +37,7 @@ class RainfallWaterContraster(object):
self.filepath_summary = os.path.join(self.dir_output, "summary.txt")
summarywriter(self.model, self.filepath_summary)
writefile(os.path.join(self.dir_output, "params.json"), self.get_config())
writefile(os.path.join(self.dir_output, "params.json"), json.dumps(self.get_config()))
else:
self.model = self.load_model(filepath_checkpoint)