Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit 6faadcf

Browse files
authored
Replaced print functions to logging.
1 parent 6bba262 commit 6faadcf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎train.py‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,16 @@ def main(argv):
465465
validation_label_error_rate /= validation_num
466466

467467
# Output intermediate step information.
468-
print("Epoch %d/%d (time: %.3f s)" %
469-
(current_epoch + 1, NUM_EPOCHS, time.time() - start_time))
470-
print("Train cost: %.3f, train label error rate: %.3f" %
471-
(train_cost, train_label_error_rate))
472-
print("Validation cost: %.3f, validation label error rate: %.3f" %
473-
(validation_cost, validation_label_error_rate))
468+
logging.info("Epoch %d/%d (time: %.3f s)",
469+
current_epoch + 1,
470+
NUM_EPOCHS,
471+
time.time() - start_time)
472+
logging.info("Train cost: %.3f, train label error rate: %.3f",
473+
train_cost,
474+
train_label_error_rate)
475+
logging.info("Validation cost: %.3f, validation label error rate: %.3f",
476+
validation_cost,
477+
validation_label_error_rate)
474478

475479
test_feed = {inputs_placeholder: test_inputs,
476480
sequence_length_placeholder: test_sequence_lengths}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /