Carlos-Francisco Méndez-Cruz

Final version binClass for papers

......@@ -102,9 +102,11 @@ if args.traind and not args.input:
if args.split:
X = vectorizer.transform(X_test)
y_pred = clf.predict(X)
print(precision_score(y_test, y_pred))
print(recall_score(y_test, y_pred))
print(f1_score(y_test, y_pred))
print("Test results: ")
print("Precision: {}".format(precision_score(y_test, y_pred)))
print("Recall: {}".format(recall_score(y_test, y_pred)))
print("F-score: {}".format(f1_score(y_test, y_pred)))
print("Classification report:")
print(classification_report(y_test, y_pred))
else:
from pdb import set_trace as st
......