Description
Function to list models accessible to the user and optionally only models created by the user.
Usage
td_list_models(
name = NULL,
algorithm.name = NULL,
engine = NULL,
accessible = TRUE,
public = FALSE
)
Arguments
name |
Optional Argument. |
algorithm.name |
Optional Argument. |
engine |
Optional Argument. |
accessible |
Optional Argument. |
public |
Optional Argument. |
Value
A data.frame representation of the model listing.
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")
# Example 1 - List all models saved and accessible to the current user.
td_list_models()
# Example 2 - List models accessible to the user with
# name = 'glm_model'.
td_list_models(name = "glm_model")
# Example 3 - List all models accessible to the user with algorithm
# name 'GLM'.
td_list_models(algorithm.name = "GLM")
# Example 4 - List all models accessible to user with algorithm name
# 'GLM' and name containing string 'glm'.
td_list_models(name = "glm", algorithm.name = "GLM")
# Example 5 - List all models accessible to user with algorithm name
# 'GLM' and generated using 'ML Engine'.
td_list_models(algorithm.name = "GLM", engine = "ML Engine")
# Example 6 - List all models created by the user with algorithm name
# 'GLM', generated using 'MLE', and access not set to Public.
td_list_models(algorithm.name = "GLM", engine = "MLE",
accessible = FALSE, public = FALSE)