[azureml python sdk v2] access files in URI_FOLDER output after job has finished?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- azure, jupyter-notebook, python
- Ambito
- data, machine-learning
Direzione di ricerca
Inizia con le API del job e di NodeOutput dell’Azure ML v2 SDK mostrate nell’issue, quindi confrontale con il percorso di accesso tramite MlflowClient. Il lavoro è completo quando viene documentato o dimostrato un modo programmatico per elencare, recuperare e scaricare i file URI_FOLDER dopo il completamento del job ivory_octopus_yd6by49kxf.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have a training job that persists some files in an URI_FOLDER output.
How can I access those through the v2 SDK API after the job has finished?
1. job setup
The output is set up like this in the command:
job = command(
# ...
outputs=dict(
outputs=Output(type=AssetTypes.URI_FOLDER, mode='rw_mount'),
),
command="python training_script.py " +
"--outputs_dir ${{outputs.outputs}} " +
# ...other arguments...
)
This seems to work fine, the corresponding folder is mounted correctly and accessible in the training script.
2. training script
In the training script, I persist a dataframe like this:
parser.add_argument("--outputs_dir", dest="outputs_dir", default=DEFAULT_MODEL_DIR)
# ...
some_dataframe.to_csv(os.path.join(args.outputs_dir, 'some_dataframe.csv'), index=True)
This works fine.
3. resulting dataset
After the job has finished, the outputs are available as a dataset.
This is what is shown in Azure ML Studio in the "Overview" tab for job ivory_octopus_yd6by49kxf:

The dataset is successfully stored in the workspaceblobstore datastore. I checked it in the Azure ML Studio and it looks fine.
4. accessing the persisted data
After the job has finished, I access the run using a MlflowClient()
MLFLOW_TRACKING_URI = ml_client.workspaces.get(name=ml_client.workspace_name).mlflow_tracking_uri
mlflow.set_tracking_uri(MLFLOW_TRACKING_URI)
mlflow_client = MlflowClient()
mlflow_run = mlflow_client.get_run("ivory_octopus_yd6by49kxf")
or
run = ml_client.jobs.get('ivory_octopus_yd6by49kxf')
# returns NodeOutput class
How can I programmatically list / get / download the outputs connected to the job?
Thanks!
- Lingua principale
- Jupyter Notebook
- Stelle
- 4.4k
- Fork
- 2.6k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/MachineLearningNotebooks
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Azure/MachineLearningNotebooks#1975 · 1 commento ·
-
duplicates Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
Azure/MachineLearningNotebooks#1987 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Azure/MachineLearningNotebooks#1985 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Azure/MachineLearningNotebooks#1981 · 1 reazione ·
Tutte le issue di Azure/MachineLearningNotebooks
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
robjhyndman/forecast#1220 ·
-
Add: New Channel Apertachannels:add check:passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
good first issue help wanted NLnet
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
collective/icalendar#1819 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
confluentinc/dbt-confluent#160 ·
-
inceleme-kuyrugu
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Greater-Turkiye/platform#107 ·