====== Distance classification using the fingertip sensor ====== ===== Client programs ===== The project contains client programs to train and test the sensors. ==== training file format ==== The training data needs to be in the following format. This allows the use in the distance evaluation program and in the libsvm-tools programs. 1: 2: 3: 4: 5: 6: 7: 8: 9: . . . The parameters 1-9 have to be in ascending order. The ''classid''s do not have to be sorted. ==== evaluate ==== This program prints values from selected sensors. It can also be used to generate training data in libsvm format Usage: Sensor-Register-Reader Parameters -f File to write data to - "out.txt" is used if not specified -c Comment to show up atop each read -n Number of rounds per read -m Bitmap of sensors to be read (e.g. for sensors 1,3 value is 5) -v <1/0> Save values (with description) (default=1) -s <1/0> Save values in libsvm-training file format (comment=classid)(default=0) ==== distance ==== This program uses libsvm to predict the sensors distance to the surface. It can use both training data and model files to generate the internal model. The training data can also be saved as a model file. Beside the distance-prediction on the sensor it can be used to test the training data. Either perform a cross validation check or test it against given test data. Usage: Distance-Evaluation Parameters -f Inut file - libsvm-model-file or training data -m <1/0> Use model as input file -n Number of lines (used) in training-data-file -t Testfile (instead of sensor input) -p Print probability estimates instead of class predictions -T Make cross validation test -s Save model file (use -o) -o Output filename for model file