Error while loading mnist dataset in jupyter

0 votes

Hi Guys,

I am trying to load mnist dataset for NN, but I am not able to do so. I am using the below given code.

from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('mnist.db')
May 8, 2020 in Machine Learning by akhtar
• 38,180 points
612 views

1 answer to this question.

0 votes

Hi@akhtar,

Instead of using sklearn dataset, you can use keras datasets as shown below.

from keras.datasets import mnist
data = mnist.load_data('mnist.db')

Hope this will help.

answered May 8, 2020 by MD
• 95,140 points

Related Questions In Machine Learning

0 votes
1 answer

Error While Installing Tensorflow

To install tensorflow you need to have ...READ MORE

answered Sep 20, 2019 in Machine Learning by Sharan
346 views
+1 vote
1 answer

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8nhf9w2t/grpcio/

Hi@akhtar, You may get this error because of ...READ MORE

answered May 16, 2020 in Machine Learning by MD
• 95,140 points
13,613 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,981 views
0 votes
0 answers
0 votes
1 answer

How to add one new column in an existing dataset?

Hi@akhtar, You can do this task using numpy ...READ MORE

answered Apr 17, 2020 in Machine Learning by MD
• 95,140 points
718 views