Skip to content
Snippets Groups Projects
Commit 8ddbfb56 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Add FAR value in the printed output ofThreshold. Make sure EPC title is...

Add FAR value in the printed output ofThreshold. Make sure EPC title is correct (adding split=False)
parent 535058d5
No related branches found
No related tags found
2 merge requests!54Refactors the score loading and scripts functionality,!52generic plotting script for bob measure
...@@ -249,8 +249,11 @@ class Metrics(MeasureBase): ...@@ -249,8 +249,11 @@ class Metrics(MeasureBase):
threshold = utils.get_thres(self._criter, dev_neg, dev_pos, self._far) \ threshold = utils.get_thres(self._criter, dev_neg, dev_pos, self._far) \
if self._thres is None else self._thres[idx] if self._thres is None else self._thres[idx]
if self._thres is None: if self._thres is None:
click.echo("[Min. criterion: %s] Threshold on Development set `%s`: %e"\ far_str = ''
% (self._criter.upper(), dev_file, threshold), if self._criter == 'far' and self._far is not None:
far_str = str(self._far)
click.echo("[Min. criterion: %s %s] Threshold on Development set `%s`: %e"\
% (self._criter.upper(), far_str, dev_file, threshold),
file=self.log_file) file=self.log_file)
else: else:
click.echo("[Min. criterion: user provider] Threshold on " click.echo("[Min. criterion: user provider] Threshold on "
...@@ -551,6 +554,7 @@ class Epc(PlotBase): ...@@ -551,6 +554,7 @@ class Epc(PlotBase):
self._x_label = 'Cost' self._x_label = 'Cost'
self._y_label = 'Min. HTER (%)' self._y_label = 'Min. HTER (%)'
self._test = True #always test data with EPC self._test = True #always test data with EPC
self._split = False
self._nb_figs = 1 self._nb_figs = 1
def compute(self, idx, dev_score, dev_file, test_score, test_file=None): def compute(self, idx, dev_score, dev_file, test_score, test_file=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment