Wanted to use the function multisvm under Image Processing, since it has been removed, please suggest an alternative for the same.
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
result = multisvm(Train_Feat);
0 Commenti
Risposte (1)
Mrutyunjaya Hiremath
il 17 Ago 2023
'multisvm' was never a built-in MATLAB function but seems to be a user-provided one that has been circulated in various forums and online platforms for multi-class SVM classification. MATLAB has the Statistics and Machine Learning Toolbox, which provides a way to perform multi-class classification with SVM.
Here's a rough outline of how you might use the built-in functions for a multi-class SVM:
Train the SVM:
When using the fitcecoc function, it internally trains binary SVM classifiers for each pair of classes and uses them for multi-class classification.
t = templateSVM('KernelFunction', 'polynomial', 'PolynomialOrder', 2);
Mdl = fitcecoc(Train_Feat, Train_Label, 'Learners', t);
Where 'Train_Feat' are your training features and 'Train_Label' are your training labels.
Predict using the trained SVM:
result = predict(Mdl, Test_Feat);
Where 'Test_Feat' are your test features.
It's quite straightforward using the built-in functions, and they're optimized and well-integrated into MATLAB's ecosystem.
Note: Ensure you have the Statistics and Machine Learning Toolbox installed and licensed in MATLAB.
0 Commenti
Vedere anche
Categorie
Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!