quickPrediction: Quickly Creating BigML Predictions

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Quickly Creating BigML Predictions

Usage

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

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.

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.

Author(s)

Leon Hwang hwang@bigml.com

References

https://bigml.com/developers/predictions

See Also

Other prediction methods: createPrediction; getPrediction

Other quick methods: quickDataset; quickModel; quickSource

Examples

1
2
3
4
5
## Not run: 
quickPrediction("model/1", list(Sepal.Width=3.5, Petal.Length=1.4))
# 'setosa'

## End(Not run)

bigml documentation built on May 2, 2019, 2:06 a.m.