Sklearn Precision Recall Curve

Python

 1|  from sklearn.metrics import PrecisionRecallDisplay
 2|  import matplotlib.pyplot as plt
 3|  
 4|  PrecisionRecallDisplay.from_predictions(y_test, y_pred)
 5|  plt.show()
Did you find this snippet useful?

Sign up for free to to add this to your code library