How can I use the neural network with variable input length ?
8 次查看(过去 30 天)
显示 更早的评论
Hello, I would like to create a neural network with different input nodes. How can I change the processing function ( Neurons Numbers ) in the hidden layer nodes? To be changed based on the input nodes. Because the length of input not fixed, sometimes be 50 or 122 or 255 or 34 and so on. 80 data input ( 60 for training and o20 for testing ). With one output. 80 data, each having Z parameters (input is Zx80) and Z between 0 to 256. Thank you
0 个评论
回答(1 个)
Greg Heath
2017-5-8
Neural networks are functions that yield a specific input/output relation between constant length I-dimensional "I"nput vectors and corresponding constant length O-dimensional "O"utput vectors.
Is your net supposed to implement regression/curve-fitting or classification/pattern-recognition?
What do your input and output vectors represent?
Since input and output vector lengths must be constant, you will have to add zero-valued components to your current inputs to accomplish that.
We can be of more help if you post additional info.
Hope this helps.
Greg
2 个评论
Greg Heath
2017-5-11
I thought I made it perfectly clear:
BOTH INPUTS AND TARGETS MUST HAVE CONSTANT LENGTH
Hope this helps
Greg
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!