cuml_predict: Make predictions on new data points.

Description Usage Arguments Value

View source: R/model.R

Description

Use a trained CuML model to make predictions on new data points. Notice calling cuml_predict() will be identical to calling the predict() S3 generic, except for cuml_predict() also comes with proper documentation on all possible predict options (such as output_class_probabilities) and will emit a sensible warning message when a predict option is not applicable for a given model.

Usage

1
cuml_predict(model, x, output_class_probabilities = NULL, ...)

Arguments

model

A trained CuML model.

x

A matrix or dataframe containing new data points.

output_class_probabilities

Whether to output class probabilities. NOTE: setting output_class_probabilities to TRUE is only valid when the model being applied is a classification model and supports class probabilities output. CuML classification models supporting class probabilities include knn, fil, and rand_forest. A warning message will be emitted if output_class_probabilities is set to TRUE or FALSE but the model being applied does not support class probabilities output.

...

Additional arguments to predict(). Currently unused.

Value

Predictions on new data points.


cuml documentation built on Sept. 21, 2021, 1:06 a.m.

Related to cuml_predict in cuml...