Commit 0cea3009 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Add printed information while generating vuln histogram

parent cd6a04d2
Pipeline #18946 failed with stage
in 55 minutes and 33 seconds
'''Runs error analysis on score sets, outputs metrics and plots'''
import pkg_resources # to make sure bob gets imported properly
import logging
import click
import numpy as np
import bob.measure.script.figure as measure_figure
......@@ -187,7 +189,14 @@ class HistVuln(measure_figure.Hist):
real_data = True if 'real_data' not in self._ctx.meta else \
far, frr = farfrr(neg[0], pos[0], threshold)
_iapmr_plot(neg[1], threshold, iapmr, real_data=real_data)
'HTER (t=%.2g) = %.2f%%; IAPMR = %.2f%%' % (
50*(far+frr), 100*iapmr
ax2.set_ylabel("IAPMR (%)", color='C3')
ax2.tick_params(axis='y', colors='red')
Supports Markdown
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