Make predictions on new data points using a CuML KNN model.
# S3 method for cuda_ml_knn
predict(object, x, output_class_probabilities = NULL, ...)
A trained CuML model.
A matrix or dataframe containing new data points.
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.
Predictions on new data points.