predict.LogarithmicRegression {hana.ml.r} | R Documentation |
Similar to other predict methods, this function predicts fitted values from a fitted "LogarithmicRegression" object.
## S3 method for class 'LogarithmicRegression' 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$Collect() ID X1 1 0 1 2 1 2 3 2 3 4 3 4 5 4 5 6 5 6 7 6 7 Perform prediction based on a "LogarithmicRegression" Object nlr: > predict(nlr, df2, key = 'ID') ID VALUE 1 0 14.86160 2 1 82.99353 3 2 122.84816 4 3 151.12546 5 4 173.05905 6 5 190.98009 7 6 206.13211 ## End(Not run)