quickPrediction(model, values, name = NULL, prediction_only = TRUE, ...)
Arguments
model
A character string or response object containing a valid model
id value.
values
A named vector or list of elements to retrieve a prediction
for
name
A string giving the name of the prediction.
prediction_only
if TRUE, only the predicted value is returned.
Otherwise, the full API response is returned.
...
Arbitrary named arguments that are passed on to
formEncodeURL in order to create form-encoded URL options.
Value
atomic character or numeric value if prediction_only is TRUE,
else return:
category
numeric
code
numeric
created
character
credits
numeric
dataset
character
dataset_status
logical
description
character
fields
list
input_data
numeric
locale
character
model
character
model_status
logical
name
character
objective_fields
character
prediction
character
prediction_path
list
private
logical
resource
character
source
character
source_status
logical
status
list
tags
AsIs
updated
character
A numeric or string value giving the prediction.
Details
quickPrediction can operate on a model id string, or a model
response object from an earlier request. The values are a list of
named elements that are used as input.