promote.predict_raw: Calls promote's REST API and returns a JSON document...

Description Usage Arguments Examples

Description

Calls promote's REST API and returns a JSON document containing both the prediction and associated metadata.

Usage

1
2
promote.predict_raw(model_name, data, model_owner, raw_input = FALSE,
  silent = TRUE)

Arguments

model_name

the name of the model you want to call

data

input data for the model

model_owner

the owner of the model [optional]

raw_input

when true, incoming data will NOT be coerced into data.frame

silent

should output of url to console (via promote.post) be silenced? Default is FALSE.

Examples

1
2
3
4
5
6
7
8
9
promote.config <- c(
 username = "your username",
 apikey = "your apikey",
 env="http://ip_of_alteryx_promote.com"
)
## Not run: 
promote.predict_raw("irisModel", iris)

## End(Not run)

promote documentation built on May 2, 2019, 2:59 p.m.