How to set target vector for training of neural network?

조회 수: 1 (최근 30일)
Abbas
Abbas 2013년 5월 21일
I have six data values which I have to classify in two classes of three data values each.I am using a feedforward neural network for this purpose.The values are: 8.8950 9.9709 10.4990 15.0184 11.9559 and 12.5560.I want to classify first three values in one class and remaining three values in the other class.I have set my input vector like below:
[8.8950,9.9709,10.4990;15.0184,11.9559,12.5560]
Now please help me to set my target vector.Moreover if input vector needs some improvements then please highlight them as well.

채택된 답변

Jing
Jing 2013년 5월 22일
Then the target vector can be [1 1 1 0 0 0;0 0 0 1 1 1]
  댓글 수: 1
Abbas
Abbas 2013년 5월 24일
Dear Jing,
My input matrix has two rows and three columns whereas target vector suggested by you contains six columns which generates error.I have transformed my input matrix into input vector of six values(one row and six columns) and it is working.But what will be target vector if I have input matrix of two rows and three columns?
Thanks for your help.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Greg Heath
Greg Heath 2013년 5월 24일
The input matrices for N I-dimensional inputs and the corresponding O-dimensional targets must have the dimensions
[ I N ] = size(inputs)
[ O N ] = size(targets)
Therefore, your syntax is incorrect.
However, the syntax of Jing is correct.
Hope this helps.
Thank you for formally accepting my answer
Greg

카테고리

Help CenterFile 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!

Translated by