diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-05 02:17:18 -0800 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-05 02:17:18 -0800 |
| commit | 4777da8bcee956f100dcce83c8d0be565fc693cc (patch) | |
| tree | 2fc99a72b74bd5d91fb54986f5b1c5ea8f160f4a /data/pair-matching/roc.py | |
| parent | c7b48885def36f3965be91c76ec1f54a5d9bf27a (diff) | |
| download | kinect-4777da8bcee956f100dcce83c8d0be565fc693cc.tar.gz | |
Some corrections. Adress some of Brano's comments.
Plots are now square
Proper separation of captions
Diffstat (limited to 'data/pair-matching/roc.py')
| -rwxr-xr-x | data/pair-matching/roc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/pair-matching/roc.py b/data/pair-matching/roc.py index 7396ab4..c0d7d83 100755 --- a/data/pair-matching/roc.py +++ b/data/pair-matching/roc.py @@ -51,7 +51,7 @@ if __name__ == "__main__": indices = [i for i in range(ap.shape[0]) if ap[i,1]<0.1] ap_false = ap[:,1][indices] ap_true = ap[:,0][indices] - plt.plot(ap_false,ap_true,label="Face recognition") + plt.plot(100*ap_false,100*ap_true,label="Face recognition") plt.xlabel("False positive rate [%]") plt.ylabel("True positive rate [%]") np.random.seed() @@ -77,7 +77,7 @@ if __name__ == "__main__": false_pos = false_pos[indices] true_pos = np.array(true_pos) true_pos = true_pos[indices] - plt.plot(false_pos,true_pos,label="$\sigma$ = "+str(s)) + plt.plot(100*false_pos,100*true_pos,label="$\sigma$ = "+str(s)) leg = plt.legend(loc="lower right") leg.get_frame().set_linewidth(legend_width) plt.savefig("roc.pdf",bbox_inches="tight",pad_inches=0.05) |
