Complete the code to trigger a pipeline run on every push to the main branch.
on:
push:
branches:
- [1]The main branch is the default branch where we want to trigger the pipeline on every push.
Complete the code to specify the job that runs the ML training script.
jobs:
train_model:
runs-on: ubuntu-latest
steps:
- name: Run training
run: python [1]The training script is usually named train.py to run the ML training process.
Fix the error in the pipeline step that installs dependencies.
steps:
- name: Install dependencies
run: pip [1] -r requirements.txtThe correct pip command to install dependencies from a requirements file is pip install -r requirements.txt.
Fill both blanks to create a dictionary comprehension that maps dataset names to their sizes if size is greater than 1000.
dataset_sizes = {name: size for name, size in datasets.items() if size [1] [2]The comprehension filters datasets with size greater than 1000 using size > 1000.
Fill all three blanks to create a dictionary comprehension that maps model names in uppercase to their accuracy if accuracy is above 0.8.
filtered_models = { [1]: [2] for model, accuracy in models.items() if accuracy [3] 0.8 }The comprehension maps uppercase model names to their accuracy if accuracy is greater than 0.8.