We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c18671 commit f2b2fadCopy full SHA for f2b2fad
ergo/project.py
@@ -224,8 +224,17 @@ def train(self, gpus):
224
log.info("training with %d GPUs", gpus)
225
to_train = multi_gpu_model(self.model, gpus=gpus)
226
227
- self.history = self.logic.trainer(to_train, self.dataset).history
228
- self.accu = self.accuracy()
+ past = self.history.copy() if self.history is not None else None
+ present = self.logic.trainer(to_train, self.dataset).history
229
+
230
+ if past is None:
231
+ self.history = present
232
+ else:
233
+ self.history = {}
234
+ for name, past_values in past.items():
235
+ self.history[name] = past_values + present[name]
236
237
+ self.accu = self.accuracy()
238
239
print("")
240
self._emit_txt_stats(sys.stdout)
0 commit comments