Sklearn Precision Score

Python

How to calculate a Precision Score using Sklearn.

 1|  from sklearn.metrics import precision_score
 2|  
 3|  precision = precision_score(y_test, y_pred)
Did you find this snippet useful?

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