how to label features extracted from image using extractFeatures() and divide them in testing and training sets?
1 回表示 (過去 30 日間)
古いコメントを表示
if I use detectSURFFeatures() Then extractFeatures() for 47 images Then I need to split those features extracted from 47 images into training n testing sets also label them +1/-1 for svm how can I do it using matlab.
2 件のコメント
回答 (2 件)
Image Analyst
2015 年 10 月 24 日
If you have the Statistics and Machine Learning toolbox, you can use randsample()
0 件のコメント
KJVKU999
2015 年 10 月 29 日
How many surf point you are using? Are you using all available points? You can use Classification Learner application available with statistics and machine learning toolbox.
Save your features in table format and load that table from the application. While making it in table format, also include one column named 'Label' wherein you can give class name or number.
Toolbox will take care of the training and testing once you specify validation method.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!