download_checkpoints_from_run_id

health_azure.download_checkpoints_from_run_id(run_id, checkpoint_path_or_folder, output_folder, aml_workspace=None, workspace_config_path=None)[source]

Given an Azure ML run id, download all files from a given checkpoint directory within that run, to the path specified by output_path. If running in AML, will take the current workspace. Otherwise, if neither aml_workspace nor workspace_config_path are provided, will try to locate a config.json file in any of the parent folders of the current working directory.

Parameters
  • run_id (str) – The id of the run to download checkpoints from

  • checkpoint_path_or_folder (str) – The path to the either a single checkpoint file, or a directory of checkpoints within the run files. If a folder is provided, all files within it will be downloaded.

  • output_folder (Path) – The path to which the checkpoints should be stored

  • aml_workspace (Optional[Workspace]) – Optional AML workspace object

  • workspace_config_path (Optional[Path]) – Optional workspace config file

Return type

None