Complete the code to define a pipeline task using a decorator.
@pipeline def my_pipeline(): @[1] def preprocess(): pass
The @task decorator defines a pipeline task in many MLOps frameworks.
Complete the code to create a Directed Acyclic Graph (DAG) for pipeline execution.
with DAG('[1]', schedule_interval='@daily') as dag: pass
The DAG name is often the pipeline name, here my_pipeline.
Fix the error in the task dependency definition to ensure correct execution order.
preprocess = task1()
train = task2()
train [1] preprocessThe >> operator sets train to run after preprocess.
Fill both blanks to define a pipeline component with input and output.
def preprocess(data: [1]) -> [2]: # process data pass
The input type is Input and the output type is Output in pipeline components.
Fill all three blanks to create a pipeline step that runs a training component with parameters.
train_step = [1]( model_name=[2], epochs=[3] )
The training step calls train_component with model name 'resnet50' and epochs 10.
