How to set target vector for training of neural network?
2 次查看(过去 30 天)
显示 更早的评论
I have six data values which I have to classify in two classes of three data values each.I am using a feedforward neural network for this purpose.The values are: 8.8950 9.9709 10.4990 15.0184 11.9559 and 12.5560.I want to classify first three values in one class and remaining three values in the other class.I have set my input vector like below:
[8.8950,9.9709,10.4990;15.0184,11.9559,12.5560]
Now please help me to set my target vector.Moreover if input vector needs some improvements then please highlight them as well.
0 个评论
采纳的回答
更多回答(1 个)
Greg Heath
2013-5-24
The input matrices for N I-dimensional inputs and the corresponding O-dimensional targets must have the dimensions
[ I N ] = size(inputs)
[ O N ] = size(targets)
Therefore, your syntax is incorrect.
However, the syntax of Jing is correct.
Hope this helps.
Thank you for formally accepting my answer
Greg
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!