Complete the code to import the main TFX module.
import [1]
The main TFX module is imported using import tfx.
Complete the code to create a TFX pipeline object named 'pipeline'.
from tfx.orchestration import pipeline pipeline = pipeline.Pipeline(pipeline_name=[1])
The pipeline name must be a string, so it should be in quotes like 'my_pipeline'.
Fix the error in the code to add a TFX ExampleGen component to the pipeline.
from tfx.components import ExampleGen example_gen = ExampleGen(input_base=[1])
The input_base parameter must be a string path to the data directory.
Fill both blanks to define a Trainer component with a module file and training args.
from tfx.components import Trainer trainer = Trainer(module_file=[1], train_args=[2])
The module_file should be the Python file with training code as a string path. The train_args is a TFX TrainArgs object specifying training steps.
Fill all three blanks to create a TFX pipeline with components and a metadata connection.
from tfx.orchestration import metadata pipeline = pipeline.Pipeline( pipeline_name='my_pipeline', components=[[1], [2]], metadata_connection_config=metadata.[3](connection_config=None))
The pipeline components list includes example_gen and trainer. The metadata connection config uses sqlite_metadata_connection_config for local metadata storage.
