def getScores(clf, X, y): predictions = clf.predict(X) scores = precision_recall_fscore_support(y, predictions, average='binary') return scores