Description Usage Arguments Details Value Author(s) References See Also Examples
Creating BigML Predictions
1 2 | createPrediction(model_id, input_field_ids, name = NULL,
prediction_only = TRUE, ...)
|
model_id |
character string; the model id |
input_field_ids |
a list of input field ids and values to make a prediction for (see example). |
name |
character string; The given name for the prediction. |
prediction_only |
logical: Indicating whether the prediction should be returned as a simple value, or if the full response object should be returned. |
... |
Arbitrary named arguments that are passed on to
|
This function needs to use id information from existing R resources. See the references for more details.
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 |
Leon Hwang hwang@bigml.com
https://bigml.com/developers/predictions
Other prediction methods: getPrediction
;
quickPrediction
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# simple example
m1 = createPrediction("model/1",
input_field_ids = c('000001'='somevalue', '000002'=9999))
# configure a number of different parameters
m2 = createPrediction("model/2",
input_field_ids = c('000001'='somevalue', '000002'=9999),
name='new prediction')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.