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

Predict based on model for Decision Tree Classifier

Description

Predict based on model for Decision Tree Classifier

Usage

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

Arguments

model

R6Class object
DecisionTreeClassifier object for predict.

data

DataFrame
Independent variable values used for prediction.

key

character
Name of the ID column.

features

list of character, optional
Names of the feature columns.
If not provided, it defaults to all non-ID columns.

verbose

logical , optional
Defaults to FALSE. Valid only for Classification.

thread.ratio

double, optional
The ratio of available threads used for training.
- 0: single thread;
- (0,1): percentage of available threads;
- others : heuristically determined.
Defaults to -1.

Value

Dataframe Predicted values, structured as follows.


[Package hana.ml.r version 1.0.8 Index]