Warning: The display option can only plot 2D training data
7 views (last 30 days)
Show older comments
I am working on classification of images using SVM classifier,
I want to do classifivation ,the dataset consists of males and females ,first i want to classify its gender,
if it is female i dont want to classify,if male i want to calssify it as adult or aged person
for this i have 100 images of males and females
i have extracted features like colour and texture and have saved in variable features
features =100x6,(100 images ,each column consists of feature vector),
features1 i have to test for 40 images(40x6)
so on whic basics i have to classify using svm classifier
please assist
tr=rand(100,6);features
group=[ones(60,1);2*ones(40,1)];
te=tr(61:end,:);
svmStruct = svmtrain(xdata,group,'showplot',true); res= svmclassify(svmStruct ,te);
I get error in plotting,plz assist.
0 Comments
Answers (1)
Shashank Prasanna
on 21 Jan 2013
You have high dimensional data (in |R^6) and obviously you can't visualize 6 dimensions, so don't force the 'showplot' to true and you shouldn't see this 'Warning'
If you are concerned about visualization take the dimensionality reduction route and perform for example PCA and reduce it to 3 dimensions to visualize it.
See Also
Categories
Find more on Biomedical Imaging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!