Description
Function to save a tdplyr analytic function model to the Model Catalog.
Usage
td_save_model(
model,
name,
description,
model.project = NULL,
entity.target = NULL,
performance.metrics = NULL
)
Arguments
model |
Required Argument. |
name |
Required Argument. |
description |
Required Argument. |
model.project |
Optional Argument. |
entity.target |
Optional Argument. |
performance.metrics |
Optional Argument. |
Examples
# Get remote data source connection.
con <- td_get_context()$connection
# Load example data.
loadExampleData("glm_example", "admissions_train")
# Create object of class "tbl_teradata" to use as input.
admissions_train <- tbl(con, "admissions_train")
# Create the GLM model.
td_glm_out1 <- td_glm_mle(formula = (admitted ~ stats + masters + gpa + programming),
family = "LOGISTIC",
linkfunction = "LOGIT",
data = admissions_train,
weights = "1",
threshold = 0.01,
maxit = 25,
step = FALSE,
intercept = TRUE
)
# Save this generated model.
td_save_model(model = td_glm_out1, name = "glm_model", description = "GLM test")