predict.GeometricRegression {hana.ml.r}R Documentation

Make Predictions from a "GeometricRegression" Object

Description

Similar to other predict methods, this function predicts fitted values from a fitted "GeometricRegression" object.

Usage

## S3 method for class 'GeometricRegression'
predict(model, data, key, features = NULL,
  thread.ratio = NULL, model.format = NULL)

Arguments

model

R6Class object
"GeometricRegression" object for prediction.

data

DataFrame
Data for prediction.

key

character
Name of the ID column.

features

character, optional
Name of the features column.
If not provided, it defaults the the all no-ID, no-label column of data.

thread.ratio

double, optional
Controls the proportion of available threads to use for prediction. The value range is from 0 to 1, where 0 indicates a single thread, and 1 indicates up to all available threads. Values between 0 and 1 will use that percentage of available threads.Values outside this range are ignored.
Defaults to 0.

model.format

character, optional
Choose the format of mdoel. 'coefficients' or 'pmml'.
Defaults to 'coefficients'.

Value

Predicted values are returned as a DataFrame, structured as follows.

See Also

hanaml.GeometricRegression

Examples

## 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)

[Package hana.ml.r version 1.0.8 Index]