简体   繁体   中英

How to load an experiment in azureml?

I have many experiment, like:

图片

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

Following AzureML's Experiment class documentation, they define an Experiment as a container of trials or runs. If you wish to access the container or the Experiment as a whole, you can use just access it by name (as long as you have the right workspace configured). See snippet below:

from azureml.core import Experiment, Workspace
ws = Workspace.from_config()
my_exp = Experiment(ws, name="teste2-Monitor-Runs")

I believe it is that way.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM