private void svmClassifierPerformance(SVM svm, string name) { double accuracy = 0; if (svm.buildSVMCorpus(name)) { accuracy = svm.DoCrossValidationTest(); if (accuracy > 0) { MessageBox.Show("Current Classifier is Support Vector Machine (SVM), its Accuracy: " + accuracy * 100 + "%"); } } else { SVMScale svmScale = new SVMScale(); if (svmScale.buildSVMCorpus(name)) { if (svmScale.fileExistance) { svmScale.scaleSVMData(name); svmClassifierPerformance(svm, name); MessageBox.Show("The data is successfully transformed for SVM application."); } } else { MessageBox.Show("Record Data not found!\n There is no recorded data with provided subject name"); } } }