How to set training and taget data for training neural networks?
2 次查看(过去 30 天)
显示 更早的评论
I have a training set 25 rows and 298 columns. rows correspond to samples and columns correspond to features. The samples in first 5 rows correspond to class 1, next 5 to class 2 and so on up to class 5. And I have a test matrix with same dimensions. I'm confused with the way inputs and target values are supplied for training in neural network. I saw somewhere that it should be excel format. I don't understand how this can be done. Thanks.
0 个评论
采纳的回答
Greg Heath
2015-4-9
Make life easy and use a *.txt file. For the NNTBX you will have to transpose your matrices. For classification use patternnet with target matrices containing columns of eye(5)
[ I N ] = size(input) % [ 298 25 ]
[ O N ] = size(target) % [ 298 25 ]
However, 25 examples define AT MOST a 24-dimensional input space.
Therefore you have to DRASTICALLY REDUCE the dimensionality of your input space. For this I recommend
help PLSREGRESS
doc PLSREGRESS
Then
help patternnet
doc patternnet
Followed with searches for some of my examples in both the NEWSGROUP and ANSWERS
greg patternnet
Hope this helps.
Thank you for formally accepting my answer
Greg
2 个评论
Greg Heath
2015-4-22
You only need two matrices: input and target. The sizes are given above.
Or am I missing something?
更多回答(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!