The confusion matrix attribute from_predictions doesnt work.
7 answers ( 0 marked as helpful)
Thank you for reaching out!
Please, update your
sklearn library to version 1.0 or older.
can you please explain to me, how to do it?
You can update your library by opening your anaconda prompt and typing:
conda update scikit-learn
Let me know if any of the steps are unclear.
Before asking this question, I tried all the commands in the command prompt but nothing is working.
Could you please try to update the
scikit-learn library in the anaconda prompt and share a screenshot of the output?
Please execute the command
conda install scikit-learn=1.1.2
This will install a specific version of the package, namely 1.1.2.
Let me know if you experience any problems.
Submit an answer
How to fix : " AttributeError: 'CountVectorizer' object has no attribute 'get_feature_names_out'"