Description Usage Arguments Examples
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).
| 1 | promote.deploy(model_name, confirm = TRUE, custom_image = NULL)
 | 
| 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 | 
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.