Here is my import lines:
from sklearn.metrics import PrecisionRecallDisplay
When I type
PrecisionRecallDisplay
I get
sklearn.metrics._plot.precision_recall_curve.PrecisionRecallDisplay
insted of
sklearn.metrics.PrecisionRecallDisplay
I am trying to run the following code line:
display = PrecisionRecallDisplay.from_estimator(lr_clf, x_test, y_test, name = "Logistic Regression")
and I get this error:
AttributeError: type object 'PrecisionRecallDisplay' has no attribute 'from_estimator'
I am using the latest version of sklearn.('0.24.2')