Issue
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'
Then I tried to figure out the problem:
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
Answered By - Carter McKay
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.