I receive an error message:
cannot import name 'ConfusionMatrixDisplay' from 'sklearn.metrics'".
when I run the following import code:
from sklearn.metrics import ConfusionMatrixDisplay
How to fix it?
I receive an error message:
cannot import name 'ConfusionMatrixDisplay' from 'sklearn.metrics'".
when I run the following import code:
from sklearn.metrics import ConfusionMatrixDisplay
How to fix it?
Most likely your version of sklearn is outdated -
sklearn.metrics.ConfusionMatrixDisplay was added in sklearn>=1.0.0.
You can check your sklearn version with:
python3 -m pip show scikit-learn