フィルターのクリア

How to set the target vector for image input in training neural network?

2 ビュー (過去 30 日間)
Amod Amatya
Amod Amatya 2016 年 8 月 18 日
コメント済み: Amod Amatya 2016 年 8 月 18 日
I am training a neural network to recognize traffic sign(stop sign). I have taken 90 images of size 8x8 of which 30 are positive and remaining are negative. So my input is 64x90 and my target vector is 1x90. But what will be the values in my target vector? How do i assign it?

採用された回答

Greg Heath
Greg Heath 2016 年 8 月 18 日
編集済み: Greg Heath 2016 年 8 月 18 日
There are two choices
1-dimensional target 0 or 1
2-dimensional target [ 1;0 ] or [ 0;1 ]
The 2-D target is preferred because it is a special case of a c-class target matrix with columns of the unit matrix eye(c) as the target vectors.
Hope this helps.
Thank you for formally accepting my answer
Greg
PS I have zillions of pattern recognition/classifier examples in the NEWSGROUP and ANSWERS
Search using
GREG PATTERNNET
  1 件のコメント
Amod Amatya
Amod Amatya 2016 年 8 月 18 日
I am a bit confused.. Previously, i have assigned target = 1x90 matrix (first 30 column = 1 and last 60 column = 0) as the first 30 are positive images. Is this correct?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by