Questions tagged [mnist]

MNIST is a database of handwritten digits collected by Yann Lecun and widely used in machine learning research.

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.

Here is the full documentation for MNIST database of handwritten digits:

It is a good database for people who want to try learning techniques and pattern recognition methods on real-world data while spending minimal efforts on preprocessing and formatting.

1329 questions
-1
votes
1 answer

What is x_train.reshape() and What it Does?

Using MNIST Dataset import numpy as np import tensorflow as tf from tensorflow.keras.datasets import mnist # MNIST dataset parameters num_classes = 10 # total classes (0-9 digits) num_features = 784 # data features (img shape: 28*28) (x_train,…
user12188405
-1
votes
1 answer

error: OpenCV(4.1.2) (-215:Assertion failed) image.channels() == 1 || image.channels() == 3 || image.channels() == 4 in function 'cv::imwrite_'

I use openCV(4.1.2) in python 3.7 to process my photos to MNIST format in windows 7. First I want to resize my photo to 28*28, and then convert it to grayscale. Finally, I want to store the converted photos. I use the following code: def…
Django
  • 99
  • 1
  • 1
  • 11
-1
votes
1 answer

pytorch train function Varibles and Tensors (read my introduction i dont know my problem as well it just dont work )

I started learning pytorch and started with videos about MNIST handwriting and learnt it with an video but the video is 2 years old and some things have changen since then i guess because it dosent work as in the video and i seriously dont know…
-1
votes
1 answer

Polynomial neural network features MNIST

i'm trying to create a neural network with MNIST data set. I know I have to unroll each image into a vector with every pixel, and stack each image vector, but how do I add polynomial features? I am doing this in python
-1
votes
1 answer

How can I preprocess my image so it can be processed by a SVM in the same way it processes the MNIST dataset

I want to analyze my own images using an SVM trained on the MNIST dataset. How can I preprocessed my image so it can be accepted by the model? dataset = datasets.fetch_openml("mnist_784", version=1) (trainX, testX, trainY, testY) =…
-1
votes
1 answer

What is the next step when having completed first neural network?

I'm a big fan of the youtube channel 3Blue1Brown and his series on Neural networks really got me excited on the subject. I decided to create my own neural network in python from scratch engaging deeply in the mathematics. So with the help from the…
KnasScripter
  • 97
  • 1
  • 4
  • 10
-1
votes
1 answer

my neural network is not learning cost is not changing

I'm building a neural network for classifying mnist digits I got the data from I tried to built it with only tensorflow I didn't want to use keras https://www.kaggle.com/c/digit-recognizer/data and through epochs cost is not decreasing I followed…
-1
votes
1 answer

ValueError when trying to use MNIST/EMNIST letters dataset in machine learning program

I have a machine learning program that I'm trying to train to recognize handwritten characters using the EMNIST (Extended MNIST) dataset in a wrapper on PyPi. I keep receiving an error. I have already tried changing tuples describing shapes of…
Ben
  • 11
  • 1
  • 3
-1
votes
1 answer

What does matrix[x] for different x indicate?

While using the MNIST datasetfrom kaggle,i have noticed that all the tutorials use mnist[x] for different values of x to retrieve different pictures. import pandas as pd import numpy as np import matplotlib.pyplot as plt mnist=pd.read_csv(r"(dir of…
-1
votes
1 answer

Suggestions for matching spoken and written digits with Machine Learning

I’m working on a machine learning problem which is proving very difficult. I want to learn to recognize whether an image of a hand written digit and a recording of a spoken digit refer to the same or different number. False: the image and the…
-1
votes
1 answer

PyTorch why does the forward function run multiple times and can I change the input shape?

import torch import torch.nn as nn import torchvision.datasets as dsets from skimage import transform import torchvision.transforms as transforms from torch.autograd import Variable import pandas as pd; import numpy as np; from torch.utils.data…
-1
votes
1 answer

Getting different accuracy on test data in MNIST digit recognition in Keras

I am doing handwritten digit recognition using Keras and I have two files: predict.py and train.py. train.py trains the model (if it is not already trained) and saves it to a directory, otherwise it would just load the trained model from the…
ray an
  • 1,132
  • 3
  • 17
  • 42
-1
votes
2 answers

how to add more data with mnist data to train keras model

I tried to recognize using mnist data as train data but failed so I want to add my train data with that so how can I train my model with mnist dataset and my own data. I tried training with my own data also but failed any suggestions are welcome…
kritarth
  • 11
  • 3
-1
votes
1 answer

MNIST dataset missing classes

I'm training a ConvNet using Keras and Theano, but before doing that I decided to take a peek into the dataset, its data samples and classes... And I don't like what I'm seeing. I'm using the following code to load both training and test datasets…
Meloku
  • 45
  • 1
  • 2
  • 9
-1
votes
2 answers

I was trying to run the demo provided in github, but none of them were working. failed to get the assembly reference

Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'LearningModelSession' could not be found (are you missing a using directive or an assembly reference?) MNIST_Demo …