step_1 Download the original sources from website
- you could click it or use the command
wget
- then you will get the file like following:
step_2 decompress the download file into “libsvm-3.25”
- use the command
tar -zxvf libsvm-3.25.tar.gz
and you will get the following file
step_3 compile the source file into executable file
- use
sudo chmod 777 libsvm-3.25
to give the file power to compile cd libsvm-3.25/
make
- then you will see some executive files
step_4 now you could find a dataset to conduct your experiment
-
I test my work with data file heart_scale
-
use the command
./svm-train heart_scale
(note that heart-scale and svm-train are in same path folder) to train the default svm model with heart_scale database, the results shows as follows:
-
Then use the command
./svm-predict heart_scale heart_scale.model heart_scale.predict
to test the accuracy heart_scale.model. Note that owing to no file heart_scale.t in this folder, I JUST use the training database to make this test and got the following results: