from azureml.core.run import Run run_logger = Run.get_context() run_logger.log("accuracy", float(val_accuracy))