predict.GeometricRegression.RdSimilar to other predict methods, this function predicts fitted values from a fitted "GeometricRegression" object.
# S3 method for GeometricRegression predict( model, data, key, features = NULL, thread.ratio = NULL, model.format = NULL )
| model |
|
|---|---|
| data |
|
| key |
|
| features |
|
| thread.ratio |
|
| model.format |
|
S3 methods
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.
DataFrame data2 for prediction:
> data2$Collect() 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 = data2, key = "ID") ID VALUE 1 0 1.072219 2 1 4.170538 3 2 9.231373 4 3 16.221851 5 4 25.119354