diff options
author | Vasil Zlatanov <v@skozl.com> | 2018-10-18 18:34:25 +0100 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2018-10-18 18:34:25 +0100 |
commit | 3b283614e35fc04214c4e7d8bc7acd07037520ac (patch) | |
tree | f0d84c81bebd1e4984127a10aa44529b34d4a9a2 | |
parent | bc9544dee8837c9b2c05d799ada45f4cf0bfc025 (diff) | |
download | vz215_np1915-3b283614e35fc04214c4e7d8bc7acd07037520ac.tar.gz vz215_np1915-3b283614e35fc04214c4e7d8bc7acd07037520ac.tar.bz2 vz215_np1915-3b283614e35fc04214c4e7d8bc7acd07037520ac.zip |
Add neighbor argument
-rwxr-xr-x | train.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |