how to create dataset for classification and pattern recognition (neural network)

4 ビュー (過去 30 日間)
hanem ellethy
hanem ellethy 2015 年 8 月 27 日
コメント済み: Eric T 2017 年 6 月 9 日
Dear all I have a table of extracted features from the image. I need to create a dataset to use it in classification and pattern recognition. I have many images and i will group them according to disease stage to 4 or 5 groups or classes. could you help me how to create the dataset (inputs and targets) and if there some advice to create a good classifier and have a good results. thank you

採用された回答

Greg Heath
Greg Heath 2015 年 8 月 28 日
For c classes: Create two matrices from N pairs of I-dimensional input vectors and c-dimensional {0,1} unit vector targets. The 1 in the target vectors indicates the class index integer (1:c). The relationship between the target matrix and the class index row vector is given by
target = ind2vec(classindices)
classindices = vec2ind(target)
Use patternnet or the obsolete (but still available) newpr.
See the examples in the help and doc documentation, e.g.,
help patternnet
doc patternnet
Also see some of my posts in the NEWSGROUP and ANSWERS:
greg patternnet
Hope this helps.
Thank you for formally accepting my answer
Greg
  2 件のコメント
hanem ellethy
hanem ellethy 2015 年 8 月 28 日
thanks for your answer but still not clear for me I will follow your posts in the NEWSGROUP and ANSWERS and try to understand more. If not I will ask again. Best Regards
Eric T
Eric T 2017 年 6 月 9 日
It is sparse so to get it in a format you can read:
full(ind2vec([1 1 2 2 3 3]))

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePattern Recognition and Classification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by