mdl = fitcecoc(X, Y)
mdl = fitcecoc(X, Y, Name, Value)
label = predict(mdl, Xnew)
[label, score] = predict(mdl, Xnew)
fitcecoc creates a ClassificationECOC object from numeric predictors X and class labels Y.
The current classifier uses one-versus-one binary fitcsvm learners. Name-value arguments include ClassNames, KernelFunction, KernelScale, PolynomialOrder, BoxConstraint, Standardize, IterationLimit, and Tolerance.
X = [0 0; 0 1; 5 5; 5 6; 10 0; 10 1];
Y = [1; 1; 2; 2; 3; 3];
mdl = fitcecoc(X, Y);
[label, score] = predict(mdl, [0.2 0.2; 5.2 5.2; 10.2 0.2])
| Version | Description |
|---|---|
| 2.0.0 | initial version |