Skip to content

Commit

Permalink
Update parse_log.py
Browse files Browse the repository at this point in the history
Correct parsing (exponential notation learning rates were not being interpreted correctly)
  • Loading branch information
mlopezantequera committed Jun 22, 2015
1 parent 12475b9 commit e342e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/extra/parse_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def parse_log(path_to_log):
regex_iteration = re.compile('Iteration (\d+)')
regex_train_output = re.compile('Train net output #(\d+): (\S+) = ([\.\deE+-]+)')
regex_test_output = re.compile('Test net output #(\d+): (\S+) = ([\.\deE+-]+)')
regex_learning_rate = re.compile('lr = ([\.\d]+)')
regex_learning_rate = re.compile('lr = ([-+]?[0-9]*\.?[0-9]+([eE]?[-+]?[0-9]+)?)')

# Pick out lines of interest
iteration = -1
Expand Down

0 comments on commit e342e15

Please sign in to comment.