Complete the code to save the model with reproducible results.
model.save('model_[1].h5')
Using a version like 'v1' helps keep track of reproducible model builds.
Complete the code to set a fixed random seed for reproducibility.
import numpy as np np.random.seed([1])
Setting a fixed seed like 42 ensures the random numbers are the same every run.
Fix the error in the code to log parameters for reproducibility.
mlflow.log_param('learning_rate', [1])
Logging the parameter as a number (0.01) is correct for reproducibility tracking.
Fill both blanks to create a reproducible data split.
train_data, test_data = train_test_split(data, test_size=[1], random_state=[2])
Using test_size=0.2 and random_state=42 ensures the split is reproducible.
Fill all three blanks to log model metrics reproducibly.
mlflow.log_metric('[1]', [2], step=[3])
Logging 'accuracy' with value 0.95 at step 1 helps track reproducible metrics.
