score.DiscriminantAnalysis.RdThis function predicts class labels of labeled dataset from a fitted "DiscriminantAnalysis" object, and return the corresponding accuracy score.
# S3 method for DiscriminantAnalysis
score(model, data, key, features = NULL, label = NULL, ...)S3 methods
R6Class object
A "DiscriminantAnalysis" object for scoring.
character
Specifies the ID column in data.
character or list of characters, optional
Specifies the feature columns in data.
The specified features must be the same as those in the model training phase.
Defaults to all non-key, non-label columns in data if not provided.
character, optional
Specifies the label column in data.
If not provided, defaults to the last non-key column in data.
Reserved parameters.
numeric
The accuracy score of model applied to data.