I am able to log and fetch metrics to AzureML using Run.log, however, I need a way to also log run parameters, like Learning Rate, or Momentum. I can’t seem to find anything in the AzureML Python SDK documentation to achieve this. However, if I use MLflow’s mlflow.log_param, I am able to log parameters, and they even nicely show up on the AzureML Studio Dashboard (bottom right of the image):
Again, I am able to fetch this using MLflow’s get_params() function, but I can’t find a way to do this using just AzureML’s Python SDK. Is there a way to do this directly using azureml
?
2
Answers
The retrieving of log run parameters like Learning Rate, or Momentum is not possible with AzureML alone. Because it was tied with MLFlow and azureml-core. without those two involvements, we cannot retrieve the log run parameters.
Need to install these three for getting run parameters. Link
In AzureML Python SDK v1, you can save and get metrics from the Run object.
First find the run id (either in the UI or with the SDK)
Second, use the
get_metrics
method from therun
objectDocumentation: