合适的后验概率
返回ScoreSVMModel
= fitSVMPosterior (SVMModel
)ScoreSVMModel
,它是一个经过训练的支持向量机(SVM)分类金宝app器,包含用于两类学习的最优得分-后验概率变换函数。
该软件使用支持向量机分类器拟合适当的得分-后验概率转换函数SVMModel
,并使用存储的预测数据进行交叉验证(SVMModel。X
)和类标签(SVMModel。Y
).变换函数计算观察被归入正类的后验概率(SVMModel.Classnames (2)
).
返回一个训练过的支持向量机分类器,该金宝app分类器包含从训练过的、紧凑的支持向量机分类器得到的转换函数ScoreSVMModel
= fitSVMPosterior (SVMModel
,TBL
,ResponseVarName
)SVMModel
这个年代的tware estimates the score transformation function using predictor data in the tableTBL
和类标签资源描述。ResponseVarName
.
返回一个训练过的支持向量机分类器,该金宝app分类器包含从训练过的、紧凑的支持向量机分类器得到的转换函数ScoreSVMModel
= fitSVMPosterior (SVMModel
,TBL
,Y
)SVMModel
这个年代的tware estimates the score transformation function using predictor data in the tableTBL
和类标签Y
.
返回一个训练过的支持向量机分类器,该金宝app分类器包含从训练过的、紧凑的支持向量机分类器得到的转换函数ScoreSVMModel
= fitSVMPosterior (SVMModel
,X
,Y
)SVMModel
这个年代的tware estimates the score transformation function using predictor dataX
和类标签Y
.
,ScoreSVMModel
= fitSVMPosterior (<年代pan class="argument_placeholder">___名称,值
)使用一个或多个指定的附加选项名称,值
对参数提供SVMModel
是一个分类VM
分类器。例如,您可以指定要使用的折叠数k倍交叉验证。
[
)另外返回转换函数参数(ScoreSVMModel
,ScoreTransform
]=fitSVMPosterior(<年代pan class="argument_placeholder">___ScoreTransform
),使用前面语法中的任何输入参数。
这个过程描述了一种预测正类后验概率的方法。
通过传递数据来训练SVM分类器fitcsvm
这个result is a trained SVM classifier, such asSVMModel
,用来存储数据。软件设置分数变换函数属性(SVMModel.ScoreTransformation
)没有一个
.
通过训练的SVM分类器SVMModel
来fitSVMPosterior
或fitPosterior
.结果,例如,ScoreSVMModel
,与训练的SVM分类器相同SVMModel
,除了软件集ScoreSVMModel。ScoreTransformation
到最优分数变换函数。
通过预测器数据矩阵和包含最优分数变换函数的训练SVM分类器(ScoreSVMModel
)预测
这个年代econd column in the second output argument of预测
存储与预测数据矩阵的每一行对应的正类后验概率。
如果你跳过第二步,那么预测
返回正的类别得分,而不是正的类别后验概率。
在拟合后验概率之后,您可以生成C/ c++代码来预测新数据的标签。生成C/ c++代码需要<年代pan class="entity">MATLAB<年代up>®编码器™. 有关详细信息,请参阅代码生成简介.
如果您将分数重新估计为后验概率变换函数,也就是说,如果您将SVM分类器传递给fitPosterior
或fitSVMPosterior
和它的ScoreTransform
属性是不没有一个
,则软件:
显示警告
将原来的转换函数重置为“没有”
在估计新的之前
[1] Platt, J. <支持向量机的概率输出和与正则似然方法的比较>。金宝app:大裕度分类器的进展.麻省理工学院出版社,2000年,61-74页。
分类VM
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">CompactClassificationSVM
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">ClassificationPartitionedModel
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fitcsvm
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">预测
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fitPosterior
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fitPosterior
|<年代pan itemscope itemtype="//www.tatmou.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">kfoldPredict