Complete the code to start a new ML experiment using the platform's API.
experiment = ml_platform.[1]('my_experiment')
The create_experiment method initializes a new experiment on the ML platform, which is the correct way to start tracking.
Complete the code to log a metric value to the ML platform.
experiment.log_metric('[1]', 0.85)
The standard metric name used is accuracy. This is the key expected by the platform to log accuracy values.
Fix the error in the code to properly save the trained model artifact.
experiment.[1]_artifact('model.pkl')
The correct method to save an artifact in the ML platform is log_artifact. This tracks the file with the experiment.
Fill both blanks to filter experiments by status and sort by creation date.
experiments = sorted(ml_platform.get_experiments(status=[1]), key=lambda x: x.[2])
Filtering by 'completed' status shows finished experiments. Sorting by creation_time orders them by when they were created.
Fill all three blanks to create a dictionary of model names to their accuracy if accuracy is above 0.8.
high_accuracy_models = {model[1]: metrics[2] for model, metrics in model_results.items() if metrics[2][3] 0.8}The model names are converted to uppercase with .upper(). The accuracy metric is accessed with ['accuracy']. The filter keeps models with accuracy greater than 0.8.