Skip to main content

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

I wrote a classifier in C++ but it doesn't learn and returns the same loss each epoch

I wrote a classifier in C++ and tried training it on MNIST set but it doesn't learn. Because I am using log loss, it returns a loss of -ln(1/10) basically random chance. I tried tinkering with my ...
Devansh Gupta's user avatar
0 votes
1 answer
26 views

How to update first layer weights?

I’m trying to make a neural network without using any deep learning library that recognizes numbers in the mnist database. Its structure is: 784 input neurons (for the 784 pixels in the number images),...
Allo Bonjour's user avatar
0 votes
0 answers
21 views

Autoencoders failing to recreate MNIST numbers

I have been having trouble trying to get a working (non-variational) autoencoder to reproduce images from the MNIST dataset. The two biggest issues is an averaging of the samples to yield a single ...
Mce Bab's user avatar
0 votes
0 answers
15 views

Convolutional Network not Fully Learning MNIST (60% accuracy)

I have been working on a self-made Conv Net for some time. In addition to my network taking multiple epochs to increase the test-set accuracy, the accuracy flatlines at about 60% around 30 Epochs. ...
Mce Bab's user avatar
0 votes
0 answers
25 views

How to improve Accuracy on dermaMNIST dataset?

Unlike the regular MNIST which gets 97-99% with a fairly basic network, dermaMNIST gets training/validation stuck on 0.69. This tells me the model is underfitting. But, making it bigger seems to have ...
Zwerchhau's user avatar
  • 131
1 vote
0 answers
50 views

Negative MNIST - Trying to understand what's going on here

I'm new to machine learning and pytorch and any insight would be greatly appreciated. I've been playing around with the MNIST number recognition dataset and thought it would be interesting to train ...
Sloth Man's user avatar
  • 111
1 vote
2 answers
34 views

Using a Genetic Algorithm in junction with a digit classifier CNN to create an "MNIST image generator"

I'm trying to use a genetic algorithm that optimizes a 28x28 matrix (its shape) to make it look like an image of the number 7 that could be found in the MNIST image dataset. My attempt is to basically ...
kal_elk122's user avatar
0 votes
0 answers
35 views

GAN/DC-GAN isn't converging

I've been trying to train a vanilla GAN(for MNIST) for a few days, and nothing works. I've tried a lot of different layers, hyperparameters, and more, but every time the discriminator's loss decreases(...
Complex's user avatar
0 votes
0 answers
11 views

Assessing performance of a generative model (images) using Jensen-Shannon Divergence

Background I am currently working on comparing two high-dimensional image datasets (MNIST) of shape $\sim(50000, 256)$ to evaluate the performance of a generative model, and have attempted to use ...
Andrea's user avatar
  • 101
2 votes
0 answers
75 views

Detecting upside down numbers in the MNIST dataset

I'm trying to predict numbers using the MNIST dataset. Since I don't know whether the numbers that I'm trying to predict are rotated (most of the time upside down, but can also be 90 or 270 degrees), ...
user1195883's user avatar
1 vote
0 answers
142 views

Is there a list of all the incorrectly labelled MNIST images along with their correct labels?

It seems that its well known that the MNIST handwritten digit dataset contains quite a few examples where the labels are clearly wrong and correspond to the wrong digit, some examples of people ...
Chuttle_guy's user avatar
0 votes
1 answer
26 views

I cannot run MNIST MWE (hello world for DL)

I have installed Anaconda and want tor run MWE for MNIST but I'me getting this error: D:\STAZENE_last\Anaconda2\Lib\site-packages\torch\cuda\__init__.py:107: ...
user2925716's user avatar
0 votes
1 answer
39 views

What is the highest possible prediction accuracy when I flip some labels at random?

I want to predict MNIST labels in a binary setting using a simple MLP model (0 for digits 0-4 and 1 for 5-9). For the train and test data, I randomly flip 25% of the labels. Is the maximum achievable ...
Johannes97's user avatar
0 votes
0 answers
48 views

The cost function gets stuck at 120 epochs

I did a neural network in c++ to recognize handwritten digits using the MNIST dataset without any neural network pre-existing libraries. My network has 784 inputs neuron (the pixel of the image), 100 ...
kripi's user avatar
  • 1
1 vote
1 answer
72 views

Using python AI mnist to recognize my picture, trained accuracy is 97.99%, but accuracy to my img is less than 20%

Questions like these are difficult to debug, but you'll hopefully find more help on datascience.stackexchange.com than here I see the suggestion that post in Data science is also a good option Using ...
DC con's user avatar
  • 111
1 vote
2 answers
3k views

Training and validation loss are almost the same (perfect fit?)

I am developing an ANN from scratch which classifies MNIST digits. These are the curves I get using only one hidden layer composed of 100 neurons activated by ...
tail's user avatar
  • 127
0 votes
0 answers
23 views

Is it possible to you MNIST model for thousands of classifications?

I am very new to ML and I am trying to create a CNN which basically does exactly the same thing as MNIST handwritten digit recognition model, but instead of 10 classifications I'd like to use over ...
GJG's user avatar
  • 1
1 vote
1 answer
38 views

How to stop my CNN getting confused between 3s and 8s, and 1s and 7s?

I am trying to train a CNN, using the MNIST dataset (which I perform data augmentation on), to classify numbers on a sudoku grid from 0-9. While mostly successful, my network seems to get confused ...
VJ123's user avatar
  • 147
1 vote
0 answers
310 views

Reduce MNIST dataset

I am working on the MNIST dataset. How I can reduce 50% of this data? (x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()
Salman Al-haddad's user avatar
1 vote
1 answer
146 views

Accuracy over 100%

I am using OpenFL, the Intel framework for Federated Learning. If I run their tutorial example, I have that loss decreases and accuracy is in range 0-100%, like this: ...
CasellaJr's user avatar
  • 229
6 votes
3 answers
10k views

MNIST Digit dataset requires login

I want to download the MNIST handwritten digit data from the offical site: https://yann.lecun.com/exdb/mnist/ But it wants me to enter a username and a password. How can I download the data? Does ...
Jakob's user avatar
  • 171
1 vote
0 answers
70 views

What model to train to restore MNIST test dataset

I came across this problem, and not sure where to start. What model would work best for this problem and why? Imagine the digits in the test set of the MNIST dataset (http://yann.lecun.com/exdb/mnist/)...
Sharhad Bashar's user avatar
0 votes
2 answers
2k views

Tensorflow - I don't get the right shapes - `ValueError: Shapes (100, 10, 10) and (100, 10) are incompatible`

I am working on the mnist classification code. Such errors continue to occur in the code 코드 below. ...
tureehh's user avatar
0 votes
1 answer
465 views

MNIST dataset for digit recognition

I noticed that the MNIST dataset for digit recognition is just a CSV file They don't provide the images. https://www.kaggle.com/c/digit-recognizer/data Is it possible to get the corresponding ...
Juan's user avatar
  • 15
0 votes
3 answers
182 views

Which neural network is better?

MNIST dataset with 60 000 training samples and 10 000 test samples. Neural network #1. Accuracy on the training set: 99.53%. Accuracy on the test set: 99.31%. Neural network #2. Accuracy on the ...
user51515151's user avatar
2 votes
1 answer
611 views

Difference between grayscaled and binary mnist dataset

When making a cnn you could use the classic mnist dataset containing grayscale images. I am considering transforming them to simple binary images instead, the questions is should i? It will be much ...
David Bacelj's user avatar
1 vote
0 answers
56 views

Multi Input Network MNIST-CIFAR10

I have the following task of meta learning: We want that our neural network learns to sum weights. 1)Do the training on MNIST, and on CIFAR10 (as support dataset). We want that performance (accuracy) ...
CasellaJr's user avatar
  • 229
1 vote
0 answers
26 views

Developing Custom MLP for Mnist

I am trying to develop a custom MLP for MNIST Dataset with 2 hidden fully connected layers Mnist: 28281 FC1: input 28*28, output 512 FC2: input 512, output 128 Classifier: FC: input 128, output 10 I ...
siya m's user avatar
  • 11
0 votes
1 answer
330 views

How to pass a sequence of 4 images into LSTM and CNN-LSTM

I got an assignment and stuck with it while going down the rabbit hole of learning PyTorch, LSTM, and CNN. Provided the well-known MNIST library I take combinations of 4 numbers and per combination, ...
Sal_H's user avatar
  • 33
0 votes
0 answers
26 views

Can't get a regression problem to converge

I am working on implementing a really simple version of YOLO to learn about pytorch and building deep learning models. My dataset consists of images which have two MNIST digits placed somewhere on the ...
statsNoob's user avatar
  • 123
0 votes
1 answer
190 views

keras mnist dataset

I am learning Neural Network. I was running following source code ...
user avatar
0 votes
3 answers
538 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 ...
dontloseyourgoalie's user avatar
0 votes
1 answer
151 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 ...
Ruiyang2024's user avatar
2 votes
1 answer
246 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 ...
JoeTheShmoe's user avatar
1 vote
0 answers
203 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 ...
yorkiva's user avatar
  • 11
0 votes
1 answer
105 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, ...
Michele Paradiso's user avatar
4 votes
1 answer
476 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 ...
Ankit Chawla's user avatar
1 vote
1 answer
2k 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 : ...
Ankit Chawla's user avatar
2 votes
1 answer
30 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 ...
Robo Mop's user avatar
  • 123
2 votes
3 answers
1k views

MNIST data shape

In going through the different tutorials on CNN, autoencoders, and so on I trained myself on the MNIST problem. The different images are stored in a 3D array which shape is (60000,28,28). In some ...
AntonYellow's user avatar
1 vote
0 answers
273 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 ...
JaxPayne's user avatar
0 votes
1 answer
104 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 + ...
Amar Parajuli's user avatar
1 vote
0 answers
48 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 ...
Pranav Patel's user avatar
3 votes
3 answers
2k 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 ...
yashdk's user avatar
  • 149
-1 votes
2 answers
2k 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... ...
fiorelloccio's user avatar
1 vote
0 answers
83 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 ...
BraveDistribution's user avatar
1 vote
0 answers
35 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 ...
parth shukla's user avatar
2 votes
0 answers
153 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 ...
trzy's user avatar
  • 31
5 votes
1 answer
589 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 ...
shurup's user avatar
  • 151
0 votes
1 answer
292 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 ...
Isha's user avatar
  • 1