Reputation: 181
I want to use sklearn.metrics plot_confusion_matrix
in Google Colab. It comes with the latest stable update of sklearn 0.22.
I tried this Make colab use the latest installation of a library
But in the end it shows the version of sklearn is still 0.21.
Upvotes: 4
Views: 18098
Reputation: 71
I uninstalled sklearn from colab like you do in the start of your image and reinstalled it again updating it as it is mentioned in sklearn documentation. The code I used was the following:
!pip uninstall scikit-learn -y
!pip install -U scikit-learn
After I checked if my version was updated with:
import sklearn
sklearn.__version__
'0.24.1'
Upvotes: 7