Returns a sasctl MMmodel object from Model Manager

update_model(
  session,
  name,
  model,
  input_vars = NULL,
  output_vars = NULL,
  additional_parameters = NULL,
  update_variables = TRUE,
  exact = TRUE,
  ...
)

Arguments

session

viya_connection object, obtained through session function

name

The name of the model

model

MMmodel object, model ID or model name. If name, will try to find a single model with exact name match. See exact parameter

input_vars

data.frame with the input data sample to configure the model variables.

output_vars

data.frame with the output data sample to configure the model variables.

additional_parameters

list of parameters and lists to be added to the payload

update_variables

logical, TRUE, will make additional rest call to update variables using update_model_variables(), variables can't be changed in the same endpoint as other resources

exact

the filter query should use "contains" for partial match or "eq" for exact match

...

additional parameters to be passed to httr::POST such as httr::add_headers

Value

A MMmodel object with the model information

Examples


if (FALSE) { # \dontrun{
updated_model <- update_model(sess, model = new_model, 
                              additional_parameters = 
                               list(description = "Updated fancy description",
                              modeler = "BAD"))
updated_model
} # }