fitcecoc with specified Box Contraint and Kernel Scale
3 views (last 30 days)
Show older comments
Hello,
I want to create an SVM model for multiclass classification, with specified hyperparameters: BoxContraint = 500 and KernelScale = 0.01
I triend using:
cvpt = cvpartition(Y_train, "kFold", 5);
fitcecoc(X_train,"class", "CVPartition",cvpt, "Coding","onevsone", "BoxContraint", 500, "KernelScale", 0.01)
I get the following error:
Error in classreg.learning.FitTemplate.make (line 124)
temp = fillIfNeeded(temp,type);
Error in classreg.learning.FitTemplate/fillIfNeeded (line 448)
classreg.learning.FitTemplate.make(this.Method,'type',this.Type,...
Error in classreg.learning.FitTemplate.make (line 124)
temp = fillIfNeeded(temp,type);
Error in ClassificationECOC.template (line 111)
temp = classreg.learning.FitTemplate.make('ECOC','type','classification',varargin{:});
Error in ClassificationECOC.fit (line 115)
temp = ClassificationECOC.template(varargin{:});
Error in fitcecoc (line 339)
obj = ClassificationECOC.fit(X,Y,ecocArgs{:});
0 Comments
Answers (0)
See Also
Categories
Find more on Classification Ensembles 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!