Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

判别分析

正则化线性判别分析和二次判别分析

要以交互方式训练判别分析模型,可以使用分类学习器。为了获得更大的灵活性,可以在命令行界面中使用 fitcdiscr 来训练判别分析模型。训练模型后,可将模型和预测变量数据传递给 predict,以预测标签或估计后验概率。

App

分类学习器使用有监督的机器学习训练模型以对数据进行分类

模块

ClassificationDiscriminant PredictClassify observations using discriminant analysis model (自 R2024a 起)

函数

全部展开

fitcdiscrFit discriminant analysis classifier
makecdiscrConstruct discriminant analysis classifier from parameters
compactReduce size of discriminant analysis classifier
cvshrinkCross-validate regularization of linear discriminant
limeLocal interpretable model-agnostic explanations (LIME) (自 R2020b 起)
partialDependenceCompute partial dependence (自 R2020b 起)
permutationImportancePredictor importance by permutation (自 R2024a 起)
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
shapleyShapley values (自 R2021a 起)
crossvalCross-validate machine learning model
kfoldEdgeClassification edge for cross-validated classification model
kfoldLossClassification loss for cross-validated classification model
kfoldfunCross-validate function for classification
kfoldMarginClassification margins for cross-validated classification model
kfoldPredictClassify observations in cross-validated classification model
lossClassification loss for discriminant analysis classifier
resubLossResubstitution classification loss for discriminant analysis classifier
logpLog unconditional probability density for discriminant analysis classifier
mahalMahalanobis distance to class means of discriminant analysis classifier
nLinearCoeffsNumber of nonzero linear coefficients in discriminant analysis classifier
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge for discriminant analysis classifier
marginClassification margins for discriminant analysis classifier
resubEdgeResubstitution classification edge for discriminant analysis classifier
resubMarginResubstitution classification margins for discriminant analysis classifier
testckfoldCompare accuracies of two classification models by repeated cross-validation
predictPredict labels using discriminant analysis classifier
resubPredictClassify observations in discriminant analysis classifier by resubstitution
classifyClassify observations using discriminant analysis

对象

ClassificationDiscriminantDiscriminant analysis classification
CompactClassificationDiscriminantCompact discriminant analysis classification
ClassificationPartitionedModelCross-validated classification model

主题