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 in Machine Learning by akhtar
• 25,030 points

1 answer to this question.

0 votes


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 by MD
• 56,480 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
+1 vote
1 answer
+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,357 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 in Machine Learning by MD
• 56,480 points