필터 지우기
필터 지우기

patternnet algorithm for classification

조회 수: 4 (최근 30일)
mustafa alnasser
mustafa alnasser 2016년 4월 19일
편집: Greg Heath 2017년 5월 10일
Dear All;
I would like to know what is the algorithm of patternnet function or how it works to classification.

채택된 답변

Greg Heath
Greg Heath 2016년 4월 20일
편집: Greg Heath 2017년 5월 10일
Consider N I-dimensional input column vectors. Each is associated with 1 of c distinct classes and a corresponding c-dimensional {0,1} unit column vector obtained from a column of the unit matrix eye(c).
The corresponding dimensions of the input and target matrices are
[ I N ] = size(input)
[ c N ] = size(target)
The correspondence between the true class indices in {1:c} and c-dimensional unit target column vectors is via
target = full(ind2vec(trueclassindices))
trueclassindices = vec2ind(target)
For example
>> trueclassindices = [ 5 2 3 1 4 ]
>> target = full(ind2vec(trueclassindices))
yields
trueclassindices =
5 2 3 1 4
target =
0 0 0 1 0
0 1 0 0 0
0 0 1 0 0
0 0 0 0 1
1 0 0 0 0
PATTERNNET TRAINS the generic feedforward neural network FEEDFORWARDNET to map each input vector into it's corresponding target vector.
See the documentation
help patternnet
doc patternnet
and run the example.
Then search for some of my examples from BOTH the NEWSGROUP and ANSWERS
greg patternnet.
Hope this helps.
Thank you for formally accepting my answer
Greg

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by