predict.ExponentialRegression.RdSimilar to other predict methods, this function predicts fitted values from a fitted "ExponentialRegression" object.
# S3 method for ExponentialRegression 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 data.predict for prediction:
> data.predict$Collect() ID X1 X2 1 0 0.5 0.30 2 1 4.0 0.40 3 2 0.0 1.60 4 3 0.3 0.45 5 4 0.4 1.70
Fitted values of the prediction data using a "ExponentialRegression" Object er:
> predict(model = er, data = data.predict, key = "ID")
ID VALUE
1 0 0.690059893
2 1 1.234150232
3 2 0.006630664
4 3 0.388797021
5 4 0.005210654