from sklearn.metrics import recall_score code example
Example: accuracy_score, precision_score, recall_score
from sklearn.metrics import accuracy_score, precision_score, recall_scoreprint(‘Accuracy score: ‘, accuracy_score(y_test, predictions))print(‘Precision score: ‘, precision_score(y_test, predictions))print(‘Recall score: ‘, recall_score(y_test, predictions))