I am currently working on an ML classification problem and I'm computing the Precision, Recall and F1 using the sklearn library's following import and respective code as shown below.
from sklearn.metrics import precision_recall_fscore_support
print(precision_recall_fscore_support(y_test, prob_pos, average='weighted'))
Results
0.8806451612903226, 0.8806451612903226, 0.8806451612903226
Is there a possibility to get the same value for all 3, the precision, recall and F1 for an ML classification problem?
Any clarifications in this regard will be much appreciated.