aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2018-12-10 17:10:27 +0000
committerVasil Zlatanov <v@skozl.com>2018-12-10 17:10:27 +0000
commitf6bcf2eaa1b5cb6ddfa5c91581907113d0c65d49 (patch)
tree1adc04177939709e80fcb3e230b4b841d8a244f8
parent616484fb8bf8803a0e74f4c68843b63f2a384703 (diff)
parent21de92877fe5453009d468d37cb1c54935ad9419 (diff)
downloadvz215_np1915-f6bcf2eaa1b5cb6ddfa5c91581907113d0c65d49.tar.gz
vz215_np1915-f6bcf2eaa1b5cb6ddfa5c91581907113d0c65d49.tar.bz2
vz215_np1915-f6bcf2eaa1b5cb6ddfa5c91581907113d0c65d49.zip
Merge branch 'master' of skozl.com:e4-pattern
-rwxr-xr-xevaluate.py8
-rw-r--r--report2/fig/allbaselines.pdfbin14303 -> 15002 bytes
-rw-r--r--report2/fig/baseline.pdfbin11968 -> 14200 bytes
-rw-r--r--report2/fig/clusteracc.pdfbin15895 -> 14898 bytes
-rw-r--r--report2/fig/comparison.pdfbin14810 -> 14877 bytes
-rw-r--r--report2/fig/kmeanacc.pdfbin13787 -> 13948 bytes
-rw-r--r--report2/fig/lambda_acc.pdfbin14121 -> 13808 bytes
-rw-r--r--report2/fig/lambda_acc_tr.pdfbin14144 -> 13822 bytes
-rw-r--r--report2/fig/pqvals.pdfbin14299 -> 14356 bytes
-rw-r--r--report2/fig/trainpqvals.pdfbin14298 -> 14355 bytes
10 files changed, 4 insertions, 4 deletions
diff --git a/evaluate.py b/evaluate.py
index 251e952..54a6a9d 100755
--- a/evaluate.py
+++ b/evaluate.py
@@ -42,7 +42,7 @@ parser.add_argument("-k", "--kmean", help="Perform Kmeans", action='store_true',
parser.add_argument("-m", "--mahalanobis", help="Perform Mahalanobis Distance metric", action='store_true', default=0)
parser.add_argument("-e", "--euclidean", help="Standard euclidean", action='store_true', default=0)
parser.add_argument("-r", "--rerank", help="Use k-reciprocal rernaking", action='store_true')
-parser.add_argument("-p", "--reranka", help="Parameter 1 for Rerank", type=int, default = 11)
+parser.add_argument("-p", "--reranka", help="Parameter 1 for Rerank", type=int, default = 9)
parser.add_argument("-q", "--rerankb", help="Parameter 2 for rerank", type=int, default = 3)
parser.add_argument("-l", "--rerankl", help="Coefficient to combine distances", type=float, default = 0.3)
parser.add_argument("-n", "--neighbors", help="Number of neighbors", type=int, default = 1)
@@ -250,9 +250,9 @@ def main():
plt.plot(test_table[:(args.multrank)], 100*accuracy[0])
if(args.comparison!=1):
plt.plot(test_table[:(args.multrank)], 100*accuracy[1])
- plt.legend(['Baseline kNN', 'Improved metric'], loc='upper left')
- plt.xlabel('k rank')
- plt.ylabel('Recognition Accuracy (%)')
+ plt.legend(['Baseline NN', 'NN+Reranking'], loc='upper left')
+ plt.xlabel('Top k')
+ plt.ylabel('Identification Accuracy (%)')
plt.grid(True)
plt.show()
diff --git a/report2/fig/allbaselines.pdf b/report2/fig/allbaselines.pdf
index 2abbb57..15b1aff 100644
--- a/report2/fig/allbaselines.pdf
+++ b/report2/fig/allbaselines.pdf
Binary files differ
diff --git a/report2/fig/baseline.pdf b/report2/fig/baseline.pdf
index 8c57f05..8ff560b 100644
--- a/report2/fig/baseline.pdf
+++ b/report2/fig/baseline.pdf
Binary files differ
diff --git a/report2/fig/clusteracc.pdf b/report2/fig/clusteracc.pdf
index 054127b..09459c4 100644
--- a/report2/fig/clusteracc.pdf
+++ b/report2/fig/clusteracc.pdf
Binary files differ
diff --git a/report2/fig/comparison.pdf b/report2/fig/comparison.pdf
index 7d65092..e755c10 100644
--- a/report2/fig/comparison.pdf
+++ b/report2/fig/comparison.pdf
Binary files differ
diff --git a/report2/fig/kmeanacc.pdf b/report2/fig/kmeanacc.pdf
index 4d1ab8e..4b6e33b 100644
--- a/report2/fig/kmeanacc.pdf
+++ b/report2/fig/kmeanacc.pdf
Binary files differ
diff --git a/report2/fig/lambda_acc.pdf b/report2/fig/lambda_acc.pdf
index 9d6027e..9c3f749 100644
--- a/report2/fig/lambda_acc.pdf
+++ b/report2/fig/lambda_acc.pdf
Binary files differ
diff --git a/report2/fig/lambda_acc_tr.pdf b/report2/fig/lambda_acc_tr.pdf
index 4ae3473..8041977 100644
--- a/report2/fig/lambda_acc_tr.pdf
+++ b/report2/fig/lambda_acc_tr.pdf
Binary files differ
diff --git a/report2/fig/pqvals.pdf b/report2/fig/pqvals.pdf
index 425891c..43cccdb 100644
--- a/report2/fig/pqvals.pdf
+++ b/report2/fig/pqvals.pdf
Binary files differ
diff --git a/report2/fig/trainpqvals.pdf b/report2/fig/trainpqvals.pdf
index 800b3da..210fea4 100644
--- a/report2/fig/trainpqvals.pdf
+++ b/report2/fig/trainpqvals.pdf
Binary files differ