Carlos-Francisco Méndez-Cruz

Training, crossvalidation and testing dataset

...@@ -215,7 +215,7 @@ if __name__ == "__main__": ...@@ -215,7 +215,7 @@ if __name__ == "__main__":
215 print("Saving report...") 215 print("Saving report...")
216 with open(os.path.join(args.outputReportPath, args.outputReportFile), mode='w', encoding='utf8') as oFile: 216 with open(os.path.join(args.outputReportPath, args.outputReportFile), mode='w', encoding='utf8') as oFile:
217 oFile.write('********** EVALUATION REPORT **********\n') 217 oFile.write('********** EVALUATION REPORT **********\n')
218 - oFile.write('Classifier: {}\n'.format(args.myClassifier)) 218 + oFile.write('Classifier: {}\n'.format(args.classifier))
219 oFile.write('Kernel: {}\n'.format(args.kernel)) 219 oFile.write('Kernel: {}\n'.format(args.kernel))
220 oFile.write('Training score: {}\n'.format(myClassifier.score())) 220 oFile.write('Training score: {}\n'.format(myClassifier.score()))
221 oFile.write('Accuracy: {}\n'.format(accuracy_score(y_test, y_pred))) 221 oFile.write('Accuracy: {}\n'.format(accuracy_score(y_test, y_pred)))
......