Commit 37312171 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[script][figure] fix bug in getting filenames

parent ea35dd2e
...@@ -167,7 +167,7 @@ class MeasureBase(object): ...@@ -167,7 +167,7 @@ class MeasureBase(object):
scores = [] scores = []
basenames = [] basenames = []
for filename in filepaths: for filename in filepaths:
basenames.append(filename.split(".")[0]) basenames.append(filename)
scores.append(self.func_load(filename)) scores.append(self.func_load(filename))
return scores, basenames return scores, basenames
...@@ -294,7 +294,7 @@ class Metrics(MeasureBase): ...@@ -294,7 +294,7 @@ class Metrics(MeasureBase):
fta_dev = float(all_metrics[0][0].replace('%', '')) fta_dev = float(all_metrics[0][0].replace('%', ''))
if fta_dev > 0.0: if fta_dev > 0.0:
LOGGER.error("NaNs scores (%s) were found in %s", all_metrics[0][0], LOGGER.error("NaNs scores (%s) were found in %s", all_metrics[0][0],
dev_file) dev_file)
headers = [' ' or title, 'Development'] headers = [' ' or title, 'Development']
rows = [[self.names[0], all_metrics[0][1]], rows = [[self.names[0], all_metrics[0][1]],
[self.names[1], all_metrics[0][2]], [self.names[1], all_metrics[0][2]],
...@@ -307,7 +307,7 @@ class Metrics(MeasureBase): ...@@ -307,7 +307,7 @@ class Metrics(MeasureBase):
fta_eval = float(all_metrics[1][0].replace('%', '')) fta_eval = float(all_metrics[1][0].replace('%', ''))
if fta_eval > 0.0: if fta_eval > 0.0:
LOGGER.error("NaNs scores (%s) were found in %s", LOGGER.error("NaNs scores (%s) were found in %s",
all_metrics[1][0], eval_file) all_metrics[1][0], eval_file)
# computes statistics for the eval set based on the threshold a # computes statistics for the eval set based on the threshold a
# priori # priori
headers.append('Evaluation') headers.append('Evaluation')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment