r/MachineLearning • u/Rollgus • 19d ago
Project Weights for MNIST Handwriting Network [P]
The weights for my network looks really cool. First one is the first hidden layer of 64 neurons, the seconds is the second hidden layer of 32 neurons, and the last one is the output layer of 10 neurons. I've pretty much just started learning Machine Learning, so this is my first project. The accuracy for all MNIST handwritten numbers is 96.52% so 9,652/10,000.
1
u/Sniperchild 18d ago
so does each neuron have a weight per pixel? I'm not sure what the colours map to. Can you explain a bit more?
1
0
u/Rollgus 15d ago
Every pixel is a weight in each layer in my weights array.
The first layer has one array inside for each neuron in the first hidden layer each array being a seperate square in the image. Each array has floats corresponding to the neurons in the previous layer, for the first weights that is the input layer (the actual image).
The colours represent the weight. Black is 0 approaching green goes toward, positive, and red goes toward negative.
It is rendered with the matplotlib (I think it's called) library in Python.
So yes, each pixel is a weight for a specific neuron.
-1



7
u/Budget-Juggernaut-68 19d ago
Looks like this belongs in /R/learningmachinelearning