yhat.predict_raw {yhatr}R Documentation

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

Description

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

Usage

yhat.predict_raw(model_name, data, model_owner, raw_input = FALSE,
  silent = TRUE, bulk = FALSE)

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 yhat.post) be silenced? Default is FALSE.

bulk

should the bulk api be used Default is FALSE.

Examples

yhat.config <- c(
 username = "your username",
 apikey = "your apikey"
)
## Not run: 
yhat.predict_raw("irisModel", iris)

## End(Not run)

[Package yhatr version 0.15.1 Index]