Very confusted about the number of input neurons in my network.
2 ビュー (過去 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!