Grid search in SVM

4 views (last 30 days)
SP
SP on 19 Jul 2022
Answered: Siraj on 5 Sep 2023
Hi,
I am having training data (train.mat) and testing data (test.mat), I need to perform grid search in this. How can I do svm training with this? Kindly help me with this. Thanks in advance.

Answers (1)

Siraj
Siraj on 5 Sep 2023
Hi! It is my understanding that you want to do a grid search to optimize the hypermeters of SVM classifier.
Use the following file to optimize the hyperparameters.
To understand which arguments of the "fitcsvm" function can be optimized using grid search, you can refer to the following documentation https://www.mathworks.com/help/stats/fitcsvm.html#bt9w6j6-2

Categories

Find more on Statistics and Machine Learning Toolbox 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!