label = resubPredict(Mdl)
returns a vector of predicted class labels for the trained discriminant analysis classifier
Mdl using the predictor data stored in Mdl.X.
label has the same data type as the training response data
Mdl.Y, and the same number of entries as the number of rows in
Mdl.X.
Predicted class labels, returned as a categorical or character array, logical or
numeric vector, or cell array of character vectors.
label has the same data type as
Mdl.ClassNames and the same number of rows as
Mdl.X. The predicted class labels are those with minimal expected
misclassification cost. See Prediction Using Discriminant Analysis Models.
Posterior probabilities for classes predicted by Mdl, returned as
an N-by-K matrix. N is the
number of observations, and K is the number of classes.
Predicted misclassification costs, returned as an
N-by-K matrix. N is the
number of observations, and K is the number of classes. Each cost is
the average misclassification cost with respect to the posterior probability.
Starting in R2023b, the following classification model object functions use observations with
missing predictor values as part of resubstitution ("resub") and cross-validation ("kfold")
computations for classification edges, losses, margins, and predictions.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.