This presentation shows you how to use SVM light and SVM multiclass to classify some feature vector, and how you make input file to classify with those tools in Information Retrieval and Data mining class as TA(2017.11.16).
6. • svm_learn.exe [options] example_file model_file
• svm_classify.exe [options] example_file model_file output_file
Example_file : data file if train -> train.dat
or if test -> test.dat
Model_file : The generated model(“model” which is the name of file in here)
Output_file : The generated prediction(“prediction” which is the name of file in here)
7. svm_learn.exe example1/train.dat example1/traininig_model
svm_classify.exe example1/test.dat example1/training_model example1/prediction
gunzip -c file_name.tar.gz | tar xvf - OR tar –zxvf file_name.tar.gz
./svm_learn example1/train.dat example1/model
./svm_classify example1/test.dat example1/model example1/prediction
12. • svm_multiclass_learn [options(-c 5000)] example_file model_file
• svm_multiclass_classify [options] example_file model_file output_file
Example_file : data file if train -> train.dat
or if test -> test.dat
Model_file : The generated model(“model” which is the name of file in here)
Output_file : The generated prediction(“prediction” which is the name of file in here)
13. svm_multiclass_learn.exe -c 5000 example4/train.dat example4/traininig_model
svm_multiclass_classify.exe example4/test.dat example4/training_model example4/prediction
gunzip -c file_name.tar.gz | tar xvf - OR tar –zxvf file_name.tar.gz
./svm_multiclass_learn -c 5000 example4/train.dat example4/traininig_model
./svm_multiclass_classify example4/test.dat example4/training_model example4/prediction