Very confusted about the number of input neurons in my network.
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Greg Heath
2017-10-4
[ 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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!