mml-book / mml-book.github.io

Companion webpage to the book "Mathematics For Machine Learning"
12.91k stars 2.39k forks source link

tutorial_pca.ipynb uses removed `sklearn.datasets.fetch_mldata` #718

Open lancechua opened 2 years ago

lancechua commented 2 years ago

Describe the mistake

In sklearn v1.0.2, from sklearn.datasets import fetch_mldata raises an ImportError.

Location

Proposed solution

Remove the import since it is not used anyway. The updated fetch_openml is already used in cell 2.

Additional context

sklearn.datasets.fetch_mldata was removed in sklearn v0.22 due to the website being inoperational.