Commit 09875505 authored by Sushil Bhattacharjee's avatar Sushil Bhattacharjee

code update

parent c563361f
Pipeline #24360 failed with stage
in 2 seconds
......@@ -10,6 +10,7 @@
import bob.io.image
import bob.io.base
import bob.bio.base
import matplotlib.pyplot as pyplot
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import colors as mcolors
......@@ -135,8 +136,8 @@ def plot_roc(zero_effort_scores, genuine_scores):
pyplot.grid(True)
pyplot.title("Receiver Operating Characteristic (ROC) curve")
pyplot.xlabel("FMR")
pyplot.ylabel("100 - FNMR")
pyplot.ylim((0,101))
pyplot.ylabel("1 - FNMR")
#pyplot.ylim((0, 1)
pyplot.show()
......@@ -207,7 +208,8 @@ def plot_multiroc(file_names, labels, base_path="./scores"):
pyplot.figure(figsize=(16,8))
for f, l in zip(file_names, labels):
zero_effort_scores, genuine_scores = bob.measure.load.split(os.path.join(base_path, f))
#zero_effort_scores, genuine_scores = bob.measure.load.split(os.path.join(base_path, f))
zero_effort_scores, genuine_scores = bob.bio.base.score.load.split(os.path.join(base_path, f))
bob.measure.plot.roc(zero_effort_scores, genuine_scores, npoints=100, CAR=True, label=l)
pyplot.grid(True)
......@@ -236,7 +238,8 @@ def plot_multidet(file_names, labels, base_path="./data"):
pyplot.figure(figsize=(16,8))
for f, l in zip(file_names, labels):
zero_effort_scores, genuine_scores = bob.measure.load.split(os.path.join(base_path, f))
#zero_effort_scores, genuine_scores = bob.measure.load.split(os.path.join(base_path, f))
zero_effort_scores, genuine_scores = bob.bio.base.score.load.split(os.path.join(base_path, f))
bob.measure.plot.det(zero_effort_scores, genuine_scores, npoints=100, label=l)
bob.measure.plot.det_axis([0.01, 99, 0.01, 99])
......
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