- 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?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Shubham
am 12 Okt. 2024
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!