We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
check this code https://github.com/GuillermoJaca/Word-Spotting-in-Handwritten-Documents/blob/main/cnn_ws_experiments/evaluation/retrieval.py
Sorry, something went wrong.
sklearn
# predict probabilities for test set yhat_probs = model.predict(testX, verbose=1) # predict crisp classes for test set yhat_classes = model.predict_classes(testX, verbose=1) # accuracy: (tp + tn) / (p + n) accuracy = accuracy_score(testy, yhat_classes) print('Accuracy: %f' % accuracy) # precision tp / (tp + fp) precision = precision_score(testy, yhat_classes) print('Precision: %f' % precision) # recall: tp / (tp + fn) recall = recall_score(testy, yhat_classes) print('Recall: %f' % recall) # f1: 2 tp / (2 tp + fp + fn) f1 = f1_score(testy, yhat_classes) print('F1 score: %f' % f1)
aboelkassem
No branches or pull requests
The text was updated successfully, but these errors were encountered: