Questions tagged [mnist]

MNIST is a database of handwritten digits collected by Yann Lecun, a famous computer scientist, when he was working at AT&T-Bell Labs on the problem of automation of check readings for banks. The data set is a benchmark widely used in machine learning research. Due to its small size it is also widely used for educational purposes.s based on C++ but provides APIs for Python and Matlab.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Neural Network written in Kotlin working for simple math problems but not for MNIST classification

I'm building a neural network in Kotlin while reading the book "Neural Networks and Deep Learning" from Michael Nielsen. At the moment the network uses: sigmoid neurons, backpropagation, ...
3
votes
1answer
45 views

How to make an MNIST classifier work with blank images?

I am trying to make a Sudoku solver and for the image recognition I trained a CNN but the problem that I am facing is that I don't know how to make it see a clear distinction between numbers and blank ...
1
vote
1answer
22 views

How do reshape an image to fit my Mnist Convolutional model?

I have done research but cannot seem to find what's wrong here I have created this model for Mnist digit clasification : ...
2
votes
1answer
14 views

Separating styles of numbers for simple digit classification

I am just getting started with my first simple digit classifier, so my doubts are at a pretty low level. In every dataset of digit images I've seen so far, different variants of each digit are grouped ...
0
votes
2answers
26 views

MNIST data shape

In going through the different tutorials on CNN, auto encoders and so on I trained my self on the MNIST problem. The different images are stored in a 3D array which shape is (60000,28,28). In some ...
0
votes
0answers
36 views

MNIST GAN generator loss increasing

I'm trying to train a simple vanilla GAN on MNIST with Tensorflow. I used this github page as a reference and in my process to try and get my GAN to work I've made my code more and more similar to ...
0
votes
0answers
8 views

During modeling binarized handwritten digit images using a BMM and EM algorithm, why must, during initialization, the value of means sum to 1?

This is my first question on StackExchange. So please pardon any mistakes that I might've made. I'm reading about Multivariate Bernoulli Mixture Models and the EM algorithm from Pattern Recognition ...
0
votes
0answers
14 views

Why can't train CNN with many layers?

I've tried a few experiments on MNIST dataset and I'm not sure how to explain the results. I used a CNN comprised of conv layers and pooling layers without normalization, as you can see in the first ...
0
votes
1answer
19 views

Should I put time on my Vanilla ANN for classifying MNIST Dataset

I am building a Vanilla Neural Network in Python for my Final Year project, just using Numpy and Matplotlib, to classify the MNIST dataset. Here's the specifications of the model: One Input Layer + ...
0
votes
0answers
9 views

HoG features taking longer time in Google CO-LAB

I have been doing this for 2 days now. I want to make a model using sklearn that uses the HoG (Histogram oriented Gradients) features to classify the image (MNIST dataset having 70,000 images both ...
3
votes
3answers
736 views

Artificially expanding the datasets through rotation of images in MNIST

I came across this question from the 3rd chapter of the book Neural Networks and Deep Learning by Michael Nielsen, this is a question given in his exercise. One way of expanding the MNIST training ...
-1
votes
2answers
39 views

ValueError: Error when checking input: expected dense_9_input to have 2 dimensions, but got array with shape (60000, 28, 28)

I'm doing a regular detection of numbers from photos with MNIST, but when i try to fit my model, it doesn't work, and it dispayed this message... ...
0
votes
0answers
21 views

tf.keras: val accuracy on mnist dataset drops to random guess

For transfer learning purposes I changed mnist into 224x224 px dataset and applied skeletonizing algorithms. I want to train MNIST dataset on "squeezenet" like CNN, which can be found on github. The ...
1
vote
0answers
34 views

What neural network can I use to unmerge numbers?

I am working on a hobby project where I superimpose two different samples of two different numbers from the MNIST dataset. However, I'm stuck at what model I could use. I tried messing around with ...
2
votes
0answers
42 views

Understanding the significance of LeNet-5 w/ MNIST data set

I'm beginning to learn about conv nets and started with what I understand to be one of the seminal works: LeNet-5. However, my limited experimentation doesn't seem to show any advantage over a single ...
5
votes
1answer
259 views

How to use MNIST dataset to make predictions on similar images (colorblindness charts)?

I am trying to use the MNIST dataset to train a convolutional neural network to classify digits written in colorblindness charts. As some people have suggested, I have tried playing with the ...
0
votes
0answers
17 views

Reproducing risk curve

I want to reproduce the curve above with a code implementation using MNIST data. How can I plot the curve above with an increasing model complexity? What should I do to run experiments with increasing ...
0
votes
1answer
40 views

KNN scoring low compared to Logistic regression in MNIST challenge

KNN gives me a score of 0.76100 while it shows 94% accuracy for my training data (splitted with test_size =0.3) in my jupyter notebook while logistic regression gives me a score of 0.91485 with an ...
1
vote
1answer
13 views

Is it faster and better to train a GAN on just one digit as opposed to the whole mnist dataset?

When going through an introductory GAN tutorial to generate mnist like handwritten digits I wondered whether the systematic variance in the training data due to the different digits makes the model ...
0
votes
1answer
422 views

Split tuples with labeled samples in training, validation and test sets

I was reading through all the internet and i can't find nothing similar what i am looking for, i only saw this topic for pd.DataFrame, np.ndarray and list datasets but i didn't find nothing explaining ...
1
vote
0answers
77 views

Do we need to divide our gradients by batch size our we will use the sum (Mini batch GSD plus L2 Regularization)?

I am implementing L2 regularization in C++ and I used mini batch GSD. Without L2, I was using sum of gradients during back propagation and I was not dividing my cost function by batch size. I was ...
1
vote
0answers
24 views

How does a simple logistic regression model achieve a 92% classification accuracy on MNIST?

Even though all the images in the MNIST dataset are centered, with a similar scale, and face up with no rotations, they have a significant handwriting variation that puzzles me how a linear model ...
2
votes
2answers
96 views

Finding correlation between MNIST digits

What way would be correct to calculate the correlation between say digit '1' and digit '7' images from MNIST? Taking average values of all digit '1' pixels and digit '7' pixels to compute correlation ...
1
vote
0answers
25 views

Binary training result in chainer

I am training simple Chainer based CNN to recognise MNIST samples. To each sample I add poissonian noise. For the test purpose I have always the same random seed. I restart training resetting the ...
2
votes
2answers
797 views

DC GAN with Batch Normalization not working

I'm trying to implement DC GAN as they have described in the paper. Specifically, they mention the below points Use strided convolutions instead of pooling or upsampling layers. Use only one fully ...
0
votes
0answers
194 views

How to visualize the weights of the output(classification) layer?

I'm doing a Convolutional Neural Network of MNIST data set, and how can I visualize the weights of the output(classification) layer? I only found several websites visualizing the filters in CNN model ...
0
votes
2answers
272 views

Low accuracy on MNIST Dataset [closed]

Hi downloaded the MNIST dataset images and labels and I am trying to train but I am getting low accuracy which is very low . not Even 50 %. below is my code. ...
0
votes
0answers
3k views

Error: Negative dimension size caused by subtracting 3 from 1

The dataset here is the famous MNIST. Here's the error: Negative dimension size caused by subtracting 3 from 1 for 'conv2d_8/convolution' (op: 'Conv2D') with input shapes: [?,1,1,64], [3,3,64,128] ...
0
votes
1answer
41 views

Error on CGAN / InfoGan [closed]

So i'm trying to execute the code provided here: https://github.com/eriklindernoren/Keras-GAN/blob/master/infogan/infogan.py Both for InfoGAN and CGAN i get the same error: ...
0
votes
1answer
85 views

Data set of vectors of SVG paths for digits

I have used the MNIST data set many times to train models for digit recognition based on object character recognition (OCR). I am now trying to do the same but with a data set of svg paths.. I am ...
2
votes
2answers
146 views

Need a little help Understanding how to build model's in Keras

I am trying to make a CNN in Keras, and to test the validity of my model i am trying to get it to train on MNIST dataset, so i am sure that everything is working fine, but unfortunately model is ...
0
votes
0answers
99 views
1
vote
1answer
83 views

Does MNIST generalise to european handwriting?

I want to use the MNIST dataset to teach my neural network to recognise numbers. My problem is: The data I am working with is "european". What i mean by that is: the seven always has a dash (it often ...
1
vote
0answers
203 views

How to avoid MemoryError when using fetch_openml()?

I am using the following code to get mnist from sklearn.datasets import fetch_openml mnist = fetch_openml('mnist_784', version=1, cache=True) It has worked ...
5
votes
2answers
2k views

How mean and deviation come out with MNIST dataset?

I am a novice at the data science, and I notice some repository state the mean value and deviation in MNIST dataset are ...
4
votes
1answer
630 views

How long does it typically take to train a MNIST data on a Mac Pro?

My code is below: ...
0
votes
1answer
77 views

Why my model can't recognise my own hand written digit?

Currently i am working on digit recognizer[0-9]. My model train accuracy 100% and test accuracy ...
1
vote
1answer
72 views

What do I initialise each model in cross validation with in a multi-layer Perceptron?

So, as far as my understanding goes, cross-validation is used to determine the best model. I understand that once we determine the best model, we then train it on the entire dataset. I'm supposed to ...
4
votes
4answers
5k views

Too low accuracy on MNIST dataset using a neural network

I am beginning with deep learning. This is an implementation of a simple neural network with just 1 hidden layer on MNIST dataset. Why is it that the loss doesn't change at all after any epoch? It ...
4
votes
3answers
1k views

0.1 accuracy on MNIST fashion dataset following official Tensorflow/Keras tutorial

My goal is to classify products pictures into categories such as dress, sandals, etc. I am using the MNIST fashion dataset, following this official tutorial word-per-word: https://www.tensorflow.org/...
1
vote
1answer
832 views

padding on mnist for LeNet Architecture

LeNet accepts 32X32 image. So, to use LeNet for MNIST dataset,we have to change the size from 28X28 to 32X32. I came across This implementation. i am confused about how the following line of code work....
1
vote
0answers
77 views

What is wrong in this Deep Neural network.?

I have recently written some simple Neural Network code just for my toy dataset and it works fine, so I have decided to take a big step forward and try to write code from scratch for MNIST data. But ...
4
votes
2answers
464 views

Pre-trained CNN for one-shot learning

I'm currently trying to learn one-shot learning using convolutional neural networks. According to this video, the CNN that I use should have been pre-trained on the MNIST. Why must the CNN be pre-...
1
vote
1answer
86 views

CNN to learn and visualize 2d features

In the paper Large-Margin Softmax Loss for Convolutional Neural Networks the author has a figure as below: He is claiming that he is using only 2d features to classify MNIST with a CNN. How is he ...
11
votes
1answer
695 views

Effect of NOT changing filter weights of CNN during backprop

What is the effect of NOT changing filter weights of a CNN during backpropagation? I changed only the fully connected layer weights while training on the MNIST dataset and still achieved almost 99 ...
3
votes
1answer
3k views

How are data in tensorflow.examples.tutorials.mnist formatted?

I am analyzing a sample code that implements a Restricted Boltzmann Machine (RBM) using Tensorflow. The input data seems to be the good old MNIST, except that apparently, it is now available in ...
2
votes
2answers
71 views

how can I infer no target in a target classification problem based on deep learning?

Let's take the MNIST dataset (My application is different) with a lot of noise, I am going to train a deep NN to classify the letters. What's the right way to infer, there's no letter possibility? or ...
3
votes
0answers
183 views

Identifying computer scanned digits

I have digit images as below which I would like to identify: Some are of slightly worse quality : The images are not of a fixed resolution but are mostly in the range (80*20 to 130 *40). Due to ...
2
votes
2answers
311 views

MNIST - Vanilla Neural Network - Why Cost Function is Increasing?

I've been combing through this code for a week now trying to figure out why my cost function is increasing as in the following image. Reducing the learning rate does help but very little. Can anyone ...
5
votes
3answers
2k views

Are CNNs insensitive to rotations and shifts in images?

Can CNNs predict well if they are trained on canonical-like images but tested on a version of images that are little bit shifted? I tried it using ...