Commit d0fb5821 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[script][figure] Changes names and defaults

Change defaults fro 3D EPSC sampling to 5 in order to speed up default
behavior. This default can be changed with option --sampling
parent 5222c861
...@@ -111,7 +111,7 @@ class MetricsVuln(measure_figure.Metrics): ...@@ -111,7 +111,7 @@ class MetricsVuln(measure_figure.Metrics):
headers = ['' or title, '%s (threshold=%.2g)' % headers = ['' or title, '%s (threshold=%.2g)' %
(criter.upper(), threshold)] (criter.upper(), threshold)]
rows = [] rows = []
rows.append(['FMR (%)', '{:>5.1f}%'.format(100 * far)]) rows.append(['APCER (%)', '{:>5.1f}%'.format(100 * far)])
rows.append(['BPCER (%)', '{:>5.1f}%'.format(frr * 100)]) rows.append(['BPCER (%)', '{:>5.1f}%'.format(frr * 100)])
rows.append(['ACER (%)', '{:>5.1f}%'.format(50 * (far + frr))]) rows.append(['ACER (%)', '{:>5.1f}%'.format(50 * (far + frr))])
rows.append(['IAPMR (%)', '{:>5.1f}%'.format(100 * iapmr)]) rows.append(['IAPMR (%)', '{:>5.1f}%'.format(100 * iapmr)])
...@@ -334,6 +334,7 @@ class Epsc(PadPlot): ...@@ -334,6 +334,7 @@ class Epsc(PadPlot):
self._split = False self._split = False
self._nb_figs = 1 self._nb_figs = 1
self._title = '' self._title = ''
self._sampling = ctx.meta.get('sampling', 5)
if self._min_arg != 4: if self._min_arg != 4:
raise click.BadParameter("You must provide 4 scores files:{licit," raise click.BadParameter("You must provide 4 scores files:{licit,"
...@@ -472,7 +473,7 @@ class Epsc3D(Epsc): ...@@ -472,7 +473,7 @@ class Epsc3D(Epsc):
from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm from matplotlib import cm
points = 10 points = self._sampling or 5
omega, beta, thrs = error_utils.epsc_thresholds( omega, beta, thrs = error_utils.epsc_thresholds(
licit_dev_neg, licit_dev_neg,
......
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