How to train SVM
1 次查看(过去 30 天)
显示 更早的评论
Hi, Is there anyone who will help me in SVM for classification in Matlab code. i have completed my work until feature extraction and after feature extraction, I have created mxn size of the matrix where n is the number of samples and mx1 is the array of each image/character.
Please guide that, how I have to arrange the training dataset that I can train SVM.
0 个评论
采纳的回答
Walter Roberson
2018-5-8
"Input Arguments:
Train: Matrix of training data, where each row corresponds to an observation or replicate, and each column corresponds to a feature or variable."
That is already the form that your indicate your data is in, so you do not need to do anything further to prepare it. Just call
svmtrain(YourMatrix, Vector_of_target_information)
5 个评论
更多回答(2 个)
Ameer Hamza
2018-5-8
The easiest way to get started and visualize is to use Classification Learner App. Start it using this command
classificationLearner
Then you can start a new session. Import your data. In the model type choose SVM. Several SVM models are available. Choose advanced and choose advanced training options. Then press train to start training. When Training is complete, it will visualize result using several graphs. You can also export the model to the workspace for further processing.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!