Carlos-Francisco Méndez-Cruz

Training, crossvalidation and testing structural domain dataset

......@@ -292,9 +292,9 @@ if __name__ == "__main__":
oFile.write('Classifier: {}\n'.format(args.classifier))
oFile.write('Kernel: {}\n'.format(args.kernel))
oFile.write('Accuracy: {}\n'.format(accuracy_score(y_test, y_pred)))
oFile.write('Precision: {}\n'.format(precision_score(y_test, y_pred, average='weighted')))
oFile.write('Recall: {}\n'.format(recall_score(y_test, y_pred, average='weighted')))
oFile.write('F-score: {}\n'.format(f1_score(y_test, y_pred, average='weighted')))
oFile.write('Precision: {}\n'.format(precision_score(y_test, y_pred, average='micro')))
oFile.write('Recall: {}\n'.format(recall_score(y_test, y_pred, average='micro')))
oFile.write('F-score: {}\n'.format(f1_score(y_test, y_pred, average='micro')))
#oFile.write('Precision: {}\n'.format(precision_score(y_test, y_pred)))
#oFile.write('Recall: {}\n'.format(recall_score(y_test, y_pred)))
#oFile.write('F-score: {}\n'.format(f1_score(y_test, y_pred)))
......