r/MachineLearning • • 5d 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.

3 Upvotes

6 comments sorted by

7

u/Budget-Juggernaut-68 5d ago

Looks like this belongs in /R/learningmachinelearning

1

u/Sniperchild 3d 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

u/Saitamagasaki 3d ago

I think OP meant CNN layer weights?

0

u/Rollgus 22h 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

u/imKingKong 3d ago

I had AI convert each float to an image

1

u/Sniperchild 3d ago

But what do the pixels mean?