predict.GeometricRegression {hana.ml.r} | R Documentation |
Similar to other predict methods, this function predicts fitted values from a fitted "GeometricRegression" object.
## S3 method for class 'GeometricRegression' predict(model, data, key, features = NULL, thread.ratio = NULL, model.format = NULL)
model |
|
data |
|
key |
|
features |
|
thread.ratio |
|
model.format |
|
Predicted values are returned as a DataFrame, structured as follows.
ID: with same name and type as data's ID column.
VALUE: type DOUBLE, representing predicted values.
## Not run: DataFrame df2 for prediction: > df2 ID X1 1 0 1 2 1 2 3 2 3 4 3 4 5 4 5 Fitted values of the prediction data using model gr: > predict(model = gr, data = df2, key = "ID") ID VALUE 1 0 1.072219 2 1 4.170538 3 2 9.231373 4 3 16.221851 5 4 25.119354 ## End(Not run)