Kindly help me to get out of this. Regarding Neural network
이전 댓글 표시
I'm currently woking on pedestrian classification. I have a IEEE paper that I need to implement. I have a data set "INRIA", which consists of positive images(1126) and negative images(1218). I'm using coHOG as a feature extractor. On extracting the features from negative folder(1218 image), i got .mat file which consists of two variables "x" which contains 1218*1344 features and "y" which consists of 1*1218 elements. When I am presenting this .mat file to the pattern net (toolbox) with x as input and y as target, NN doesn't show any progress, neither it performs any epoch. I don't know what should be input and target to a NN. What should be the no. of classes( i think classes are two as pedestrian and non pedestrian). Kindly help me from last 10 days I am working on it but I have done nothing....
채택된 답변
추가 답변 (2개)
Sarah
2013년 2월 11일
0 개 추천
Hi, first of all you should clearly set the num of classes, say 'c'. Then the num of examples you have of each class, say 'n'. Each example should be a vector NOT matrix. Ip matrix is ((n*c)*k), where k is num of features in each example. The target matrix size is c*(n*c).
K must be as small as possible. Roughly talk, if n =70, then k should be around 7.
Hope this helps.
Greg Heath
2013년 2월 13일
0 개 추천
It looks like you have an I-H-O patternnet classifier with
[ I N ] = size(input) = [ 1134 2344] % 2344=1218+1126
[ O N ] = size(target) = [ 1 2344] % zeros and ones
Hopefully with
(N*O-O)/(I+O+1) ~ N/(I+2) >> H for O=1 and N >> 1.
Both classes must have the same number of extracted features, I.
The target matrix contains only zeros and ones.
help/doc patternnet % 'tansig', 'logsig' and 'trainscg'
Your biggest challenge is the feature reduction of an image to a vector with a reasonably small dimension, I. With only 2 classes, it is hard for me to believe that more than several tens of features are necessary.
While you are in the debugging mode I suggest only using a subsample ( e.g., several hundreds?) of the data vectors.
Then, for prime-time you can either design one classifier using all of the data or design several classifiers designed on separate subsets of the data and outputting a vote for either class. Then, with an odd number of classifiers, assign the input to the class that has the most votes.
Search "committee" and "ensemble" in the Newsgroup and comp.ai.neural-nets for more details on combining nets.
Hope this helps.
Thank you for formally accepting my answer
Greg
댓글 수: 2
Greg Heath
2013년 2월 13일
It would probably help us help you if you posted code.
Greg
Muzafar Pandit
2013년 2월 17일
편집: Muzafar Pandit
2013년 2월 17일
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!