predict.OneClassSVM.RdSimilar to other predict methods, this function predicts fitted values from a fitted "OneClassSVM" object.
# S3 method for OneClassSVM predict(model, data, key, features = NULL, verbose = NULL, thread.ratio = NULL)
| model |
|
|---|---|
| data |
|
| key |
|
| features |
|
| verbose |
|
| thread.ratio |
|
S3 methods
Predicted values are returned as a DataFrame, structured as follows.
ID: with same name and type as data's ID column.
SCORE: type NVARCHAR. Predicted class labels, where "1" means normal, "-1" means outlier.
PROBABILITY: type DOUBLE, Prediction probability.
Call the function and predict with a "OneClassSVM" object svc.one:
> predict(svc.one, data, key = "ID")