本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

支持向量机分类

用于二类分类或多类分类的支持向量机

为了提高在中低维数据集上的准确度并增加核函数选择,可以使用 Classification Learner App 训练二类 SVM 模型,或包含 SVM 二类学习器的多类纠错输出编码 (ECOC) 模型。为了获得更大的灵活性,可以在命令行界面中使用 fitcsvm 训练二类 SVM 模型,或者使用 fitcecoc 训练由二类 SVM 学习器组成的多类 ECOC 模型。

为了减少在高维数据集上的计算时间,可以使用 fitclinear 高效地训练二类线性分类模型(例如线性 SVM 模型),或者使用 fitcecoc 训练由 SVM 模型组成的多类 ECOC 模型。

对于大数据的非线性分类,可以使用 fitckernel 训练二类高斯核分类模型。

App

Classification LearnerTrain models to classify data using supervised machine learning

函数

全部展开

fitcsvmTrain support vector machine (SVM) classifier for one-class and binary classification
fitSVMPosteriorFit posterior probabilities
predictClassify observations using support vector machine (SVM) classifier
templateSVMSupport vector machine template
fitclinearFit linear classification model to high-dimensional data
predictPredict labels for linear classification models
templateLinearLinear classification learner template
fitckernelFit Gaussian kernel classification model using random feature expansion
predictPredict labels for Gaussian kernel classification model
templateKernelKernel model template
fitcecocFit multiclass models for support vector machines or other classifiers
predictClassify observations using multiclass error-correcting output codes (ECOC) model
templateECOCError-correcting output codes learner template

全部展开

ClassificationSVMSupport vector machine (SVM) for one-class and binary classification
CompactClassificationSVMCompact support vector machine (SVM) for one-class and binary classification
ClassificationPartitionedModelCross-validated classification model
ClassificationLinearLinear model for binary classification of high-dimensional data
ClassificationPartitionedLinearCross-validated linear model for binary classification of high-dimensional data
ClassificationKernelGaussian kernel classification model using random feature expansion
ClassificationPartitionedKernelCross-validated, binary kernel classification model
ClassificationECOCMulticlass model for support vector machines (SVMs) and other classifiers
CompactClassificationECOCCompact multiclass model for support vector machines (SVMs) and other classifiers
ClassificationPartitionedECOCCross-validated multiclass ECOC model for support vector machines (SVMs) and other classifiers
ClassificationPartitionedLinearECOCCross-validated linear error-correcting output codes model for multiclass classification of high-dimensional data
ClassificationPartitionedKernelECOCCross-validated kernel error-correcting output codes (ECOC) model for multiclass classification

主题

Train Support Vector Machines Using Classification Learner App

Create and compare support vector machine (SVM) classifiers, and export trained models to make predictions for new data.

Support Vector Machines for Binary Classification

Perform binary classification via SVM using separating hyperplanes and kernel transformations.