aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2018-10-18 18:34:25 +0100
committerVasil Zlatanov <v@skozl.com>2018-10-18 18:34:25 +0100
commit3b283614e35fc04214c4e7d8bc7acd07037520ac (patch)
treef0d84c81bebd1e4984127a10aa44529b34d4a9a2
parentbc9544dee8837c9b2c05d799ada45f4cf0bfc025 (diff)
downloadvz215_np1915-3b283614e35fc04214c4e7d8bc7acd07037520ac.tar.gz
vz215_np1915-3b283614e35fc04214c4e7d8bc7acd07037520ac.tar.bz2
vz215_np1915-3b283614e35fc04214c4e7d8bc7acd07037520ac.zip
Add neighbor argument
-rwxr-xr-xtrain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/train.py b/train.py
index 134b70a..26567e8 100755
--- a/train.py
+++ b/train.py
@@ -28,7 +28,8 @@ def normalise_faces(average_face, raw_faces):
# usage: train.py [-h] -i DATA -o MODEL [-m M]
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--data", help="Input CSV file", required=True)
-parser.add_argument("-m", "--eigen", help="Number of eigenvalues in model", required=True, type=int)
+parser.add_argument("-m", "--eigen", help="Number of eigenvalues in model", type=int, default = 8 )
+parser.add_argument("-n", "--neighbors", help="How many neighbors to use", type=int, default = 3)
parser.add_argument("-g", "--graph", help="Should we show graphs", action='store_true')
parser.add_argument("-p", "--pca", help="Use PCA", action='store_true')
parser.add_argument("-l", "--lda", help="Use LDA", action='store_true')