フィルターのクリア

How to set training and taget data for training neural networks?

1 回表示 (過去 30 日間)
Nafeesath Musfira
Nafeesath Musfira 2015 年 4 月 9 日
コメント済み: Greg Heath 2015 年 4 月 22 日
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.

採用された回答

Greg Heath
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 件のコメント
Nafeesath Musfira
Nafeesath Musfira 2015 年 4 月 10 日
thank you sir, but how do i create text file, can you please specify the format in which I can write the data sets into a text file. do i need to create a text file for each sample?
Greg Heath
Greg Heath 2015 年 4 月 22 日
You only need two matrices: input and target. The sizes are given above.
Or am I missing something?

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by