MATLAB: Very confusted about the number of input neurons in the network.

classificationinputinput neuronneural networkneuronnntoolboxnodenodespattern recognitionpatternnet

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.

Best Answer

[ 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