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

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):
ax2.grid(False)
real_data = True if 'real_data' not in self._ctx.meta else \
self._ctx.meta['real_data']
far, frr = farfrr(neg[0], pos[0], threshold)
_iapmr_plot(neg[1], threshold, iapmr, real_data=real_data)
click.echo(
'HTER (t=%.2g) = %.2f%%; IAPMR = %.2f%%' % (
threshold,
50*(far+frr), 100*iapmr
)
)
ax2.set_ylabel("IAPMR (%)", color='C3')
ax2.tick_params(axis='y', colors='red')
......
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