| predict.LogisticRegression {hana.ml.r} | R Documentation |
Similar to other predict methods, this function predicts fitted values from a fitted "LogisticRegression" object.
## S3 method for class 'LogisticRegression' predict(model, key, data, features = NULL, verbose = FALSE)
model |
|
key |
|
data |
|
features |
|
verbose |
|
Dataframe
Predicted values, structured as follows.
ID column, with same name and type as ‘data'’s ID column.
CLASS, type NVARCHAR, predicted class name.
PROBABILITY, type DOUBLE.
NOTE : predict() will pass the pmml table to PAL as the model representation if there is a pmml table, or the coefficients table otherwise.
## Not run:
df2 <- conn$sql('select * from DATA_TBL_PREDICT') -
The DataFrame for prediction
predict(lr, df2, key = 'ID', features = list('V1', 'V2', 'V3'))
- lr is a generated LogisticRegression object.
## End(Not run)