Description Usage Arguments Details Value Author(s) References See Also Examples
Quickly Creating BigML Predictions
1 | quickPrediction(model, values, name = NULL, prediction_only = TRUE, ...)
|
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
|
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.
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.
Leon Hwang hwang@bigml.com
https://bigml.com/developers/predictions
Other prediction methods: createPrediction
;
getPrediction
Other quick methods: quickDataset
;
quickModel
; quickSource
1 2 3 4 5 | ## Not run:
quickPrediction("model/1", list(Sepal.Width=3.5, Petal.Length=1.4))
# 'setosa'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.