predict.SVC {hana.ml.r} | R Documentation |
Make Predictions from a "SVC" Object
Description
Similar to other predict methods, this function
predicts fitted values from a fitted "SVC" object.
Usage
## S3 method for class 'SVC'
predict(model, data, key, features = NULL,
verbose = NULL, thread.ratio = NULL)
Arguments
model |
R6Class object A 'SVC' object for prediction.
|
data |
DataFrame The DataFrame for prediction.
|
key |
character Name of the ID column.
|
features |
character, optional
Names of the feature columns.
|
verbose |
logical, optional
Output scoring probabilities for each class.
Defauts to FALSE.
|
thread.ratio |
double, optional Controls the proportion of available
threads that can be used by this function. The value range is from
0 to 1, where 0 indicates a single thread, and 1 indicates up to all
available threads. Values between 0 and 1 will use up to that
percentage of available threads. Defaults to 0.0.
|
Value
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.
PROBABILITY: type DOUBLE, Prediction probability.
See Also
hanaml.SVC
Examples
## Not run:
> predict(svc, data, key = 'ID')
## End(Not run)
[Package
hana.ml.r version 1.0.8
Index]