Commit 8ddbfb56 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

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
...@@ -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):
......
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