Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

ModuleNotFoundError: No module named 'sklearn.datasets.mldata'

I am trying the following snippet:

from sklearn.datasets.mldata import fetch_mldata 

However, I get the error message:

ModuleNotFoundError: No module named ‘sklearn.datasets.mldata’

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Then I tried to figure out the problem:

enter image description here

Can you identify the issue?

>Solution :

The sklearn.datasets.mldata module was deprecated in version 0.20 and will be removed in version 0.22. You can use the from sklearn.datasets import fetch_openml function instead.

For more information, see the sklearn.datasets.fetch_openml documentation:

https://scikit-learn.org/stable/modules/generated/sklearn.datasets.fetch_openml.html

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading