diff --git a/bob/example/faceverify/dct_ubm.py b/bob/example/faceverify/dct_ubm.py index 44bfd22cc0f17e34a61bc1fd67506fc4cc7097d1..26fce1c53398e1e7506448c91a0d3631c133ae50 100644 --- a/bob/example/faceverify/dct_ubm.py +++ b/bob/example/faceverify/dct_ubm.py @@ -228,12 +228,12 @@ def main(): print("Result: FAR", FAR, "and FRR", FRR, "at threshold", threshold) # plot ROC curve - bob.measure.plot.roc(negatives, positives) - pyplot.xlabel("False Rejection Rate (\%)") - pyplot.ylabel("False Acceptance Rate (\%)") + bob.measure.plot.roc(negatives, positives, CAR=True) + pyplot.xlabel("False Acceptance Rate (\%)") + pyplot.ylabel("Correct Acceptance Rate (\%)") pyplot.title("ROC Curve for UBM/GMM based AT\&T Verification Experiment") pyplot.grid() - pyplot.axis([0, 100, 0, 100]) #xmin, xmax, ymin, ymax + pyplot.axis([0.1, 100, 0, 100]) #xmin, xmax, ymin, ymax # save plot to file pyplot.savefig("dct_ubm.pdf") diff --git a/bob/example/faceverify/eigenface.py b/bob/example/faceverify/eigenface.py index 484f22beb36e68a98a8f8a10918679b6e0436de2..1ead78fbe9246f4f2e2e10b1c84172c9f93bc855 100644 --- a/bob/example/faceverify/eigenface.py +++ b/bob/example/faceverify/eigenface.py @@ -161,12 +161,12 @@ def main(): print("Result: FAR", FAR, "and FRR", FRR, "at threshold", threshold) # plot ROC curve - bob.measure.plot.roc(negatives, positives) - pyplot.xlabel("False Rejection Rate (\%)") - pyplot.ylabel("False Acceptance Rate (\%)") + bob.measure.plot.roc(negatives, positives, CAR=True) + pyplot.xlabel("False Acceptance Rate (\%)") + pyplot.ylabel("Correct Acceptance Rate (\%)") pyplot.title("ROC Curve for Eigenface based AT\&T Verification Experiment") pyplot.grid() - pyplot.axis([0, 100, 0, 100]) #xmin, xmax, ymin, ymax + pyplot.axis([0.1, 100, 0, 100]) #xmin, xmax, ymin, ymax # save plot to file pyplot.savefig("eigenface.pdf") diff --git a/bob/example/faceverify/gabor_graph.py b/bob/example/faceverify/gabor_graph.py index e4168c103b2c276cd80953f246ef62c17641b22a..6ad9d78af9298fe466cc658429f7552f9022d62c 100644 --- a/bob/example/faceverify/gabor_graph.py +++ b/bob/example/faceverify/gabor_graph.py @@ -165,12 +165,12 @@ def main(): print("Result: FAR", FAR, "and FRR", FRR, "at threshold", threshold) # plot ROC curve - bob.measure.plot.roc(negatives, positives) - pyplot.xlabel("False Rejection Rate (\%)") - pyplot.ylabel("False Acceptance Rate (\%)") + bob.measure.plot.roc(negatives, positives, CAR=True) + pyplot.xlabel("False Acceptance Rate (\%)") + pyplot.ylabel("Correct Acceptance Rate (\%)") pyplot.title("ROC Curve for Gabor phase based AT\&T Verification Experiment") pyplot.grid() - pyplot.axis([0, 100, 0, 100]) #xmin, xmax, ymin, ymax + pyplot.axis([0.1, 100, 0, 100]) #xmin, xmax, ymin, ymax # save plot to file pyplot.savefig("gabor_graph.pdf") diff --git a/doc/dct_ubm.png b/doc/dct_ubm.png index d91e5b1c75e6521914165c3016a256a4f5d22775..0d597b674136ae91687da448de1c2584d44fb5f9 100644 Binary files a/doc/dct_ubm.png and b/doc/dct_ubm.png differ diff --git a/doc/eigenface.png b/doc/eigenface.png index 3e6b4a0c64081281f4107f6693eb2c966fcca797..8b0bbeb8c7417492cb7757dd7456d926f2d6422d 100644 Binary files a/doc/eigenface.png and b/doc/eigenface.png differ diff --git a/doc/examples.rst b/doc/examples.rst index ffc92c8af35f7237c7a7f740bfd0bfec2e0768c3..bdabfb064e3c316ccc84f8fbcbb44f00aea4baf9 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -159,6 +159,10 @@ and the performance is computed: The expected result is: FAR 9.15% and FRR 9% at threshold -9276.2 +.. note:: + + Here we plot the ROC curves with logarithmic FAR axis --- to highlight the interesting part of the curve, i.e., where the FAR values are small. + .. note:: Computing eigenfaces with such a low amount of training data is usually not an excellent idea. diff --git a/doc/gabor_graph.png b/doc/gabor_graph.png index 2ead22e4aba0f34714cebcc338b404585b071076..c7dfc0fee1ec3378f140d58a376dc0cae87e6518 100644 Binary files a/doc/gabor_graph.png and b/doc/gabor_graph.png differ