summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorManuel <mlopezantequera@users.noreply.github.com>2015-06-22 11:49:45 +0200
committerManuel <mlopezantequera@users.noreply.github.com>2015-06-22 11:49:45 +0200
commite342e155c41887379f3088e3e5b42b2a776d0b87 (patch)
tree81fc67bfe4c0ec98ba89a9d86340cc2b540f6921 /tools
parent12475b9560ee44b65b79cfa547ad7e3d35e8d3de (diff)
downloadcaffeonacl-e342e155c41887379f3088e3e5b42b2a776d0b87.tar.gz
caffeonacl-e342e155c41887379f3088e3e5b42b2a776d0b87.tar.bz2
caffeonacl-e342e155c41887379f3088e3e5b42b2a776d0b87.zip
Update parse_log.py
Correct parsing (exponential notation learning rates were not being interpreted correctly)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/extra/parse_log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/extra/parse_log.py b/tools/extra/parse_log.py
index 09ea216c..48f9bee0 100755
--- a/tools/extra/parse_log.py
+++ b/tools/extra/parse_log.py
@@ -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