Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have trained a neural network to identify handwritten digits.It has 784 inputs,1 hidden layer with 50 neurons and output layer with 10 neurons.Now I want to visualize the representations learnt by hidden neurons.How can that be done ??
Posted

1 solution

The knowledge learnt by an ANN is its snaptic weights, not the hidden neurons. Hidden neurons are computation nodes that take the inputs and their associated weights from the input layer, put them through some activation function to produce the outputs for the output layer. Check this out:
AI : Neural Network for beginners (Part 1 of 3)[^].
If you are looking for some machine learning algorithm that can produce graphical representation of its learning outcome, try SOM. Check this out: Self-organizing Map Demystified[^]
 
Share this answer
 
v2
Comments
Member 11579730 4-Apr-15 6:22am    
Actually,I want to look at which input images activate any given neuron most strongly. Do they have something in common? Has the neuron learnt something interpretable? So, for this I want to figure out and visualise the 'optimal stimulus' for a given neuron, i.e., the input image that would maximise its activation.The answers we get may not be precise; but it will be useful to get a sense for what kinds of patterns the neural network is actually picking up on.
Peter Leow 4-Apr-15 6:41am    
ANN is back-box learning. It will produce outcome but does not tell you how and why. For decision making that requires how and why, then decision tree will be more appropriate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900