如何规范' fitcecoc'在Matlab中使用templateSVM?

时间:2018-04-22 19:55:16

标签: matlab machine-learning classification svm

我在MATLAB中使用多项式SVM用于CIFAR-10数据集,使用HOG功能进行数据提取。我想知道如何调整' fitcecoc'的正则化参数。避免过度拟合训练集。

template = templateSVM(...
'KernelFunction', 'polynomial', ...
'PolynomialOrder', 2, ...
'KernelScale', 'auto', ...
'BoxConstraint', 1, ...
'Standardize', true);
SVM_model = fitcecoc(...
X_train, ...
Y_train, ...
'Learners', template, ...
'Coding', 'onevsone', ...
'Verbose', 2,...
'ClassNames', [1; 2; 3; 4; 5; 6; 7; 8; 9; 10]);

0 个答案:

没有答案