Very confusted about the number of input neurons in my network.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ampaul
am 4 Okt. 2017
Bearbeitet: Greg Heath
am 5 Okt. 2017
Hello,
I believe this to be an elementary question to more experienced machine learning experts, but I am lost. I know that the number of input neurons corresponds to your input layers in a neural network. However, I am still confused about how many input neurons I have in my network.
Here is my case:
I am performing a classification problem where I am trying to classify shapes. I have circles, squares, and triangles.
For my input data, I have 100 samples of each shape (300 total samples). Additionally, each sample has 50 attributes (predictors/elements) that describe the shape.
I end up with a 50*300 matrix that I am feeding into the network.
My question is, how many input neurons do I have? Would it be 50, 100, or 300?
I will be grateful for your response.
0 Kommentare
Akzeptierte Antwort
Greg Heath
am 4 Okt. 2017
[ I N ] = size(input) % [ 50 300 ]
[ O N ] = size(target) % [ 3 300 ]
target columns are columns of eye(3)
Take a look at my QUICKIES codes in the NEWSREADER.
greg quickies
This is a great way to get a quick feel for the problem before you try multiple random weight initializations trying to find the smallest successful number of hidden nodes.
Hope this helps.
Thank you for formally accepting my answer
Greg
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Define Shallow Neural Network Architectures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!