Commit 2c75773b authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[script][figure] Change message type

parent 6c05ad54
...@@ -293,7 +293,7 @@ class Metrics(MeasureBase): ...@@ -293,7 +293,7 @@ class Metrics(MeasureBase):
all_metrics = self._get_all_metrics(idx, input_scores, input_names) all_metrics = self._get_all_metrics(idx, input_scores, input_names)
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.warn("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]],
...@@ -306,7 +306,7 @@ class Metrics(MeasureBase): ...@@ -306,7 +306,7 @@ class Metrics(MeasureBase):
eval_file = input_names[1] eval_file = input_names[1]
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.warn("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
......
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