Просмотр исходного кода

updated readme and usage message

Ethan Goldfarb 6 лет назад
Родитель
Сommit
a54fa137ca

+ 8 - 3
ethan_data_processing_scripts/README.md

@@ -8,7 +8,12 @@ Suppose there are 3 features, each a float from 0 to 1. Data could be: [[.3, .2,
 
 Results should be ints in an array, each result accoring to the list of features it should represent the classification of.
 
-### Plan for classifier.py
+### Current state of nearestneighbors.py
 
-Make a command line utility that reads in samples, transforms them to FeatureVectors and then runs a number of
-classifications on them.
+Usage: nearestneighbors.py datafile.bin classificationsfile.bin testdatafile.bin
+
+A command line utility that reads in FeatureVectors and runs a KNN classification on them.
+
+Plan for classifier.py:
+Discuss data formatting at meeting, expand utility to include choice of classification and
+make more robust in general

+ 1 - 1
ethan_data_processing_scripts/nearestneighbors.py

@@ -9,7 +9,7 @@ def main():
     # nearestNeighbors([[1, 1, 0], [1, 0, 0], [0, 0, 0], [0, 5, 5]], [[1, 1, 4]])
     print(len(sys.argv))
     if len(sys.argv) != 4:
-        print("Usage: nearestneighbors.py datafile classificationsfile testdatafile")
+        print("Usage: nearestneighbors.py datafile.bin classificationsfile.bin testdatafile.bin")
         exit()
     data = readPickledData(sys.argv[1])
     classifcations = readPickledData(sys.argv[2])