Skip to content

Commit 88e5298

Browse files
tgrelnv-kkudrynski
authored andcommitted
[VAE-CF-TF] Modify result logging
1 parent b2f30f3 commit 88e5298

File tree

1 file changed

+2
-9
lines changed
  • TensorFlow/Recommendation/VAE-CF/vae/models

1 file changed

+2
-9
lines changed

TensorFlow/Recommendation/VAE-CF/vae/models/train.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,8 @@ def log_metrics(self, epoch, metrics_scores, n_epochs):
413413
dllogger.log(data=metrics_scores, step=(epoch,))
414414

415415
def log_final_stats(self):
416-
data = {"total_train_time": np.sum(self.time_elapsed_training_history),
417-
"total_valid_time": np.sum(self.time_elapsed_validation_history),
418-
"average_train_epoch time": np.mean(self.time_elapsed_training_history),
419-
"average_validation_time": np.mean(self.time_elapsed_validation_history),
420-
"total_elapsed_time" : self.total_time,
421-
"mean_training_throughput": np.mean(self.training_throughputs[10:]),
422-
"mean_inference_throughput": np.mean(self.inference_throughputs),
423-
"max_training_throughput": np.max(self.training_throughputs[10:]),
424-
"max_inference_throughput": np.max(self.inference_throughputs)}
416+
data = {"mean_training_throughput": np.mean(self.training_throughputs[10:]),
417+
"mean_inference_throughput": np.mean(self.inference_throughputs[2:])}
425418

426419
for metric_name, metric_values in self.metrics_history.items():
427420
data["final_" + metric_name] = metric_values[-1]

0 commit comments

Comments
 (0)