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

Make Predictions from a "PolynomialRegression" Object

Description

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

Usage

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

Arguments

model

R6Class object
A PolynomialRegression object for prediction.

data

DataFrame
The DataFrame for prediction.

key

character
Name of the ID column.

features

character, optional
Name of the features column.

thread.ratio

double, optional
Controls the proportion of availabel 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 availabel threads. Values between 0 and 1 will use that percentage of availabel 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.PolynomialRegression

Examples

## Not run: 
Predict with DataFrame predict.data and the "PolynomialRegression" Object pr:
> predict(pr, predict.data, key = "ID")
      ID     VALUE
  0   1   6.157063
  1   2   8.401269
  2   3  15.668581
  3   4  33.928501
  
## End(Not run)

[Package hana.ml.r version 1.0.8 Index]