Hi All,
See a simple SVM training and testing module
// Here a student performance prediction is done
//Three inputs are marks for series1, series2 and attendance percentage
//1 indicates pass and 0 indicates fail
//Testing with [25 30 and 35
//result will be stored in classes
train1=[75 81 82 ; 30 21 40];
test1=[25 30 35];
G=[1 0];
G=G';
svmStruct = svmtrain(train1,G,'Kernel_Function','rbf','Method','QP');
classes = svmclassify(svmStruct,test1);
classes
See a simple SVM training and testing module
// Here a student performance prediction is done
//Three inputs are marks for series1, series2 and attendance percentage
//1 indicates pass and 0 indicates fail
//Testing with [25 30 and 35
//result will be stored in classes
train1=[75 81 82 ; 30 21 40];
test1=[25 30 35];
G=[1 0];
G=G';
svmStruct = svmtrain(train1,G,'Kernel_Function','rbf','Method','QP');
classes = svmclassify(svmStruct,test1);
classes