- Standardization method: fitcsvm standardizes the predictors using their corresponding weighted means and weighted standard deviations. You can learn about the exact implementation used by refering to Algorithms section of the following documentation.
- Note that for multiclass classification, since the problem is essentially reduced to binary classification, the standardization method used should be the same.
- The mean and standard deviation are calculated from the training data, and these statistics are used to standardize the training data.
- The same mean and standard deviation calculated from the training set are applied to standardize both the training and the test data. This ensures that the test data is transformed in the same way as the training data, ensuring the model’s performance is evaluated correctly.
What standardize method is used in the classification learner app when using a SVM classifier?
57 views (last 30 days)
Show older comments
Maryam
on 11 Oct 2024 at 9:26
Commented: Maryam
on 14 Oct 2024 at 23:58
I am using the classification learner app in Matlab to train and test a model using a SVM classifier (quadratic). In this app you have the option to standardize the data. What kind of standardizing method is used? And is this done separately for the training set and test set?
0 Comments
Accepted Answer
Shubham
on 12 Oct 2024 at 7:35
Hey Maryam,
You can use the hyparameter options in the Classification learner app to standardize the data while using SVM.
If you have exactly two classes, Classification Learner uses the fitcsvm function to train the classifier. If you have more than two classes, the app uses the fitcecoc function to reduce the multiclass classification problem to a set of binary classification subproblems, with one SVM learner for each subproblem as mentioned here.
To answer your queries:
I hope this answers your query.
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows 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!