Find the best performing run

PHOTO EMBED

Sat Apr 09 2022 14:16:11 GMT+0000 (Coordinated Universal Time)

Saved by @wessim

# Print all child runs, sorted by the primary metric
for child_run in run.get_children_sorted_by_primary_metric():
    print(child_run)

# Get the best run, and its metrics and arguments
best_run = run.get_best_run_by_primary_metric()
best_run_metrics = best_run.get_metrics()
script_arguments = best_run.get_details() ['runDefinition']['arguments']
print('Best Run Id: ', best_run.id)
print(' -AUC:', best_run_metrics['AUC'])
print(' -Accuracy:', best_run_metrics['Accuracy'])
print(' -Arguments:',script_arguments)
content_copyCOPY

https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters