Skip to content

Commit

Permalink
Fixed indentation typo that was preventing running (IDSIA#728)
Browse files Browse the repository at this point in the history
Moved the if condition to it's right indentation so the sample can be copied and ran.
  • Loading branch information
AghiadHaloul authored Sep 25, 2020
1 parent a32c198 commit 44fc5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/collected_information.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ In any case, the numbers should form an increasing sequence.
time.sleep(ms_to_wait/1000)
# This will add an entry for training.loss metric in every second iteration.
# The resulting sequence of steps for training.loss will be 0, 2, 4, ...
if counter % 2 == 0:
_run.log_scalar("training.loss", value * 1.5, counter)
if counter % 2 == 0:
_run.log_scalar("training.loss", value * 1.5, counter)
# Implicit step counter (0, 1, 2, 3, ...)
# incremented with each call for training.accuracy:
_run.log_scalar("training.accuracy", value * 2)
Expand Down

0 comments on commit 44fc5d2

Please sign in to comment.