Search code examples
pythonazure-machine-learning-service

How to load an experiment in azureml?


I have many experiment, like:

image

and now, i want load an experiment

#%% sumonando os pacotes e verificando azureml.core
import azureml.core
import pandas as pd
import numpy as np
import logging

print("AzureML SDK Version: ", azureml.core.VERSION)

#%% Conectando ao azure e crinado o exparimento

from azureml.core import Workspace, Experiment

ws = Workspace.from_config() 
print(Experiment.list(ws))
#%%
Experiment = Experiment.from_directory('teste2-Monitor-Runs') `

but

"error": {
    "message": "No cache found for current project, try providing resource group and workspace 
arguments"
}`

Content: azureml.core.Experiment class - Azure Machine Learning Python


Solution

  • I believe it is that way.

    from azureml.core import Experiment, Workspace
    Experiment = ws.experiments["teste2-Monitor-Runs"]