Skip to content

Commit 73b8dbc

Browse files
committed
Add newline to fix epoch output
1 parent 8b598c0 commit 73b8dbc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Libs/Application/Job/PythonWorker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class PythonLogger {
4747

4848
std::atomic<bool> aborted_{false};
4949

50+
//! Command line interface mode
5051
std::atomic<bool> is_cli_mode_{false};
5152
};
5253

Python/DeepSSMUtilsPackage/DeepSSMUtils/trainer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def log_print(logger, values):
4444
print(values[i], end=' ')
4545
else:
4646
print('%.5f' % values[i], end=' ')
47+
# print a new line
48+
print()
4749

4850
# csv format
4951
string_values = [str(i) for i in values]
@@ -230,6 +232,7 @@ def supervised_train(config_file):
230232
log_print(logger,
231233
["Base_Training", e, last_learning_rate, train_mr_MSE, train_rel_err, val_mr_MSE, val_rel_err,
232234
time.time() - t0])
235+
233236
# plot
234237
epochs.append(e)
235238
plot_train_losses.append(train_mr_MSE)

0 commit comments

Comments
 (0)