promote.deploy: Deploy a model to promote's servers

Description Usage Arguments Examples

Description

This function takes model.predict and creates a model on promote's servers which can be called from any programming language via promote's REST API (see promote.predict).

Usage

1
promote.deploy(model_name, confirm = TRUE, custom_image = NULL)

Arguments

model_name

name of your model

confirm

boolean indicating whether to prompt before deploying

custom_image

name of the image you'd like your model to use

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
promote.config <- c(
 username = "your username",
 apikey = "your apikey",
 env = "http://sandbox.promotehq.com/"
)
iris$Sepal.Width_sq <- iris$Sepal.Width^2
fit <- glm(I(Species)=="virginica" ~ ., data=iris)

model.predict <- function(df) {
 data.frame("prediction"=predict(fit, df, type="response"))
}
## Not run: 
promote.library("randomForest")
promote.deploy("irisModel")

## End(Not run)

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