createPrediction: Creating BigML Predictions

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

Description

Creating BigML Predictions

Usage

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

Details

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

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

Author(s)

Leon Hwang hwang@bigml.com

References

https://bigml.com/developers/predictions

See Also

Other prediction methods: getPrediction; quickPrediction

Examples

 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)

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