Gretel Model
Last updated
Last updated
The gretel_model
action can be used to train and generate records from Gretel Models. It is a good choice for non-relational data that can share the same model config. For relational data and providing table-specific models, you should use the gretel_tabular
action instead.
Train a model from a blueprint without generating any records:
Train and generate records from a model config:
Combine two models together using the outputs of one model as the inputs to another
project_id
The project to create the model in.
model
A reference to a blueprint or config location. If a config location is used, it must be addressable by the workflow action.
This field is mutually exclusive to model_config
.
model_config
Specify the model config as a dictionary. Accepts any valid model config.
This field is mutually exclusive to model
.
run_params
Parameters to run or generate records. If this field is omitted, the model will be trained, but no records will get generated for the model.
training_data
Data to use for training. This should be a reference to the output from a previous action.
dataset
A dataset object containing the outputs from the models created by this action.