Learn R Programming

bigml (version 0.1.2)

createPrediction: Creating BigML Predictions

Description

Creating BigML Predictions

Usage

createPrediction(model_id, input_field_ids, name = NULL, prediction_only = TRUE, ...)

Arguments

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 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

Details

This function needs to use id information from existing R resources. See the references for more details.

References

https://bigml.com/developers/predictions

See Also

Other prediction methods: getPrediction; quickPrediction

Examples

Run this code
## 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)

Run the code above in your browser using DataLab