input of neural network
2 views (last 30 days)
Show older comments
Am working on neural network , my problem is if I want the input to be one element and the output is array which is the target also , matlab will give me error that the network requires the input and target to be equal size how can I avoid this ?
2 Comments
the cyclist
on 11 Mar 2013
It would be helpful if you could give a significantly greater amount of detail about the size of your arrays, and the exact calling syntax.
The ideal is to show us a small amount of self-contained code that exhibits the problem.
Accepted Answer
Greg Heath
on 11 Mar 2013
Edited: Greg Heath
on 11 Mar 2013
If you have N I-dimensional input vectors and the corresponding N O-dimensional output vectors, the input and output matrices will have the dimensions
[ I N ] = size(input)
[ O N ] = size(target)
Thank you for formally accepting my answer
Greg
More Answers (0)
See Also
Categories
Find more on Define Shallow Neural Network Architectures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!