Learn R Programming

bigml (version 0.1.2)

quickPrediction: Quickly Creating BigML Predictions

Description

Quickly Creating BigML Predictions

Usage

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.

References

https://bigml.com/developers/predictions

See Also

Other prediction methods: createPrediction; getPrediction

Other quick methods: quickDataset; quickModel; quickSource

Examples

Run this code
## Not run: 
# quickPrediction("model/1", list(Sepal.Width=3.5, Petal.Length=1.4))
# # 'setosa'
# ## End(Not run)

Run the code above in your browser using DataLab