Neural Network Pattern Recognition

조회 수: 1 (최근 30일)
Shiva Nahani
Shiva Nahani 2020년 1월 17일
답변: Greg Heath 2020년 1월 18일
Hi all,
I want to train a neural network pattern recognition, I use command "Patternnet" to create the network and command "train" for training. my problem is that I don't know how to creat my target data.
I have 12000 pictures for trainig each 28*28 size which belong to 5 classes. I normalized my input data so I have a input matrix of 12000*784 ranging between 0 and 1.
Can you pleas tell me how can I impeliment my target data for this network?
I face this error!
"Error using network/train (line 340)
Inputs and targets have different numbers of samples."

채택된 답변

Greg Heath
Greg Heath 2020년 1월 18일
Targets are 1-dimensional unit vectors with 4 zeros and a single 1 .
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