You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated the eval.py to print the f1 score , recall and accuracy .
this is the part that will print it
'''
if y_test is not None:
correct_predictions = float(sum(all_predictions == y_test))
total_predictions = len(y_test)
accuracy = correct_predictions / total_predictions
f1 = f1_score(y_test, all_predictions, average='weighted')
recall = recall_score(y_test, all_predictions, average='weighted')
print("Total number of test examples: {}".format(total_predictions))
print("Accuracy: {:g}".format(accuracy))
print("F1 Score: {:g}".format(f1))
print("Recall: {:g}".format(recall))
i wnat to print F1-score, recall, acc etc, how to change code?
The text was updated successfully, but these errors were encountered: