predict.DiscriminantAnalysis {hana.ml.r} | R Documentation |
Make Predictions from a Linear Discriminant Analysis Object
## S3 method for class 'DiscriminantAnalysis' predict(model, data, key, features = NULL, verbose = NULL)
model |
|
data |
|
key |
|
features |
|
verbose |
|
Predicted values are returned as a DataFrame, structured as follows.
ID column, with same name and type as data's ID column.
Label column, with same name and type as training data's labelcolumn.
SCORE column, score of each of the class.
transform.DiscriminantAnalysis
## Not run: Perform the predict on A 'DiscriminantAnalysis' object lda: > result <- predict(lda, test.set, features=list("ID","X1","X2","X3","X4"), key = "ID", verbose = FALSE) Output: > result ID CLASS SCORE 0 1 Iris-setosa 130.421263 1 2 Iris-setosa 99.762784 2 3 Iris-setosa 108.796296 3 4 Iris-setosa 94.301777 4 5 Iris-setosa 133.205924 ...... 26 27 Iris-virginica 57.274694 27 28 Iris-virginica 101.668525 28 29 Iris-virginica 87.257782 29 30 Iris-virginica 106.747065 ## End(Not run)