Main Content

La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.

Análisis discriminante

Análisis discriminante lineal y cuadrático regularizado

Para entrenar de forma interactiva un modelo de análisis discriminante, utilice la app Classification Learner. Para mayor flexibilidad, entrene un modelo de análisis discriminante mediante fitcdiscr en la interfaz de línea de comandos. Tras el entrenamiento, prediga las etiquetas o calcule las probabilidades a posteriori pasando el modelo y los datos de los predictores a predict.

Apps

Classification LearnerTrain models to classify data using supervised machine learning

Funciones

expandir todo

fitcdiscrFit discriminant analysis classifier
makecdiscrConstruct discriminant analysis classifier from parameters
compactCompact discriminant analysis classifier
cvshrinkCross-validate regularization of linear discriminant
limeLocal interpretable model-agnostic explanations (LIME)
partialDependenceCompute partial dependence
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
shapleyShapley values
crossvalCross-validated discriminant analysis classifier
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 error
resubLossClassification error by resubstitution
logpLog unconditional probability density for discriminant analysis classifier
mahalMahalanobis distance to class means of discriminant analysis classifier
nLinearCoeffsNumber of nonzero linear coefficients
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge
marginClassification margins
resubEdgeClassification edge by resubstitution
resubMarginClassification margins by resubstitution
testckfoldCompare accuracies of two classification models by repeated cross-validation
predictPredict labels using discriminant analysis classification model
resubPredictPredict resubstitution labels of discriminant analysis classification model
classifyClassify observations using discriminant analysis

Clases

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

Temas

Train Discriminant Analysis Classifiers Using Classification Learner App

Create and compare discriminant analysis classifiers, and export trained models to make predictions for new data.

Supervised Learning Workflow and Algorithms

Understand the steps for supervised learning and the characteristics of nonparametric classification and regression functions.

Parametric Classification

Categorical response data

Discriminant Analysis Classification

Understand the discriminant analysis algorithm and how to fit a discriminant analysis model to data.

Creating Discriminant Analysis Model

Understand the algorithm used to construct discriminant analysis classifiers.

Create and Visualize Discriminant Analysis Classifier

Perform linear and quadratic classification of Fisher iris data.

Improving Discriminant Analysis Models

Examine and improve discriminant analysis model performance.

Regularize Discriminant Analysis Classifier

Make a more robust and simpler model by removing predictors without compromising the predictive power of the model.

Examine the Gaussian Mixture Assumption

Discriminant analysis assumes that the data comes from a Gaussian mixture model. Understand how to examine this assumption.

Prediction Using Discriminant Analysis Models

Understand how predict classifies observations using a discriminant analysis model.

Visualize Decision Surfaces of Different Classifiers

This example shows how to visualize the decision surface for different classification algorithms.