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
0answers
9 views

Generalized Hebbian Algoithm (GHA) stability issues

The GHA proposed by Sanger in 1989 is supposed to be very numerically stable. There are some implementations of it floating around, for example this one https://github.com/matwey/python-gha. In that ...
0
votes
1answer
34 views

What are some general tips to improve my MNIST classifier?

I have built a CNN from scratch in python using Numpy, to tackle the MNIST hand-written digit recognition problem. It's composed out of a convolutional layer (3 3x3 filters), a maxpooling layer (2x2 ...
0
votes
0answers
25 views

Defining input shape in TensorFlow layers

I am trying to code my first TF program using Fashion-mnist data. In doing so i have some doubts regarding the usage of parameters while creating the layers. Irrespective of me defining the first ...
0
votes
1answer
36 views

MNIST 2-layer NN failing to recognize certain digits

Recently I've been taking a look into some basic multilayer neural networks, and I decided to try tackling the MNIST database of handwritten digits using a 2 layer neural network with 100 neurons in ...
2
votes
1answer
27 views

What are the Most Dissimilar MNIST Digits?

Using whatever definition of dissimilarity over sets that you'd like, what are the most dissimilar two digits in MNIST? I was thinking that a reasonable approach to answering the question would be to ...
1
vote
0answers
52 views

pytorch code for VAE for MINST forces mu and logvar to zero

I am new to pytorch and trying to implement a VAE for MNIST data. When I try to train my model, it appears that the model forces mu and logvar to zero (or something very close to zero) independent of ...
0
votes
1answer
25 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
113 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
107 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
46 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 ...
1
vote
0answers
107 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
13 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
29 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 + ...
1
vote
0answers
11 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 ...
4
votes
3answers
999 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
128 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
26 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
67 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
297 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
1answer
76 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
16 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
833 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
130 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 ...
3
votes
2answers
150 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 ...
3
votes
2answers
1k 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
263 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
343 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
4k 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
44 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
117 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
163 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
142 views
1
vote
1answer
97 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
247 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
3answers
3k 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
2answers
872 views

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

My code is below: ...
0
votes
1answer
79 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
97 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
6k 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 ...
5
votes
3answers
2k 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
1k 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
515 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
91 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
697 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 ...