promote.deploy | R Documentation |
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
).
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 |
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)