How to run LIBSVM on MATLAB for the SVDD tool

3 views (last 30 days)
I am a novice with LIBSVM and MATLAB.I want to use the LIBSVM tool to distinguish normal and abnormal data and I want to do it through MATLAB.
I tried to go through the README file provided for libsvm-3.18 but am not quite clear.
I have set of input files of type .txt ( the length and format of input files is equal and same) This is my normal data that I want to use for training my SVDD / SVM model. My test data will have both normal and abnormal data.
I understand I need to use svmtrain.c and svmpredict.c . However I have no clue how to call this code in MATLAB and run LIBSVM on MATLAB
1. Do i need to convert my .txt data to the LIBSVM format before I even use the LIBSVM code in MATLAB?
2. Can the svmtrain.c code from LIBSVM read the input files in sequence ?( i have a set of 100 txt files that I want to use as input ) How do i prepare the input for the svmtrain.c code to run in matlab?

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!