question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] How do I retrieve the outputs of each trials of a sweep job?

See original GitHub issue
  • Package Name: azure.ai.ml.sweep
  • Package Version: 1.0.0
  • Operating System: Ubuntu
  • Python Version: py38

I am running a Sweep job successfully on AzML and now I want to retrieve the outputs of each trials for further exploration. Thing is reading the both the doc and the code I can’t see how I am supposed to retrieve them. The SweepJob class does not seem to expose the run like hyperdrive used to.

I would love if any one could give me directions ❤️

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pievalentincommented, Oct 20, 2022

Ok I guess I won’t be able to have the same behavior as the sdk v1. Here is the closest thing I have for retrieving the ouput of a single trial of a sweep job.

trial = next(ml_client.jobs.list(parent_job_name=returned_sweep_job.name))
client = mlflow.MlflowClient()
finished_mlflow_run = client.get_run(trial.name)
client.list_artifacts(finished_mlflow_run.info.run_id)

This should output:

$ [<FileInfo: file_size=-1, is_dir=True, path='outputs'>, <FileInfo: file_size=-1, is_dir=True, path='system_logs'>, <FileInfo: file_size=-1, is_dir=True, path='user_logs'>]

Now you can download the output directory.

mlflow.artifacts.download_artifacts(run_id=finished_mlflow_run.info.run_id, artifact_path ="outputs",dst_path='sweep_trial_outputs')

I am not sure if the mlflow API enable file renaming.

Hope this help someone in the future

0reactions
luigiwcommented, Oct 20, 2022

@pievalentin thx for sharing your solution. Another thing you can try is ml_client.jobs.download(name=trial.name)

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI (v2) sweep job YAML schema - Azure Machine Learning
Experiment name to organize the job under. Each job's run record will be organized under the corresponding experiment in the studio's " ...
Read more >
Chapter 7 Performing Transient Analysis - Class Home Pages
Transient sweep specifications can include the following keywords and parameters: ... Star-Hspice outputs all convergent iterations. INTERP.
Read more >
Sine Sweep Testing - enDAQ
Sine Sweep Time Domain Equations ... The test duration is T. The starting and ending frequencies are and , respectively. ... The sweep...
Read more >
Optuna Guide: How to Monitor Hyper-Parameter Optimization ...
This trial object is used to construct a model inside the objective function. In this case, we choose the number of layers and...
Read more >
Inventor - To Create Sweeps - Autodesk Knowledge Network
Sweep a Profile Along a Path · Path. Holds the swept profile constant to the sweep path. All sweep sections maintain the original...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found