Questions tagged [azureml-python-sdk]
188 questions
9
votes
2 answers
How to use azureml.core.runconfig.DockerConfiguration class in azureml.core.Environment or azureml.core.ScriptRunConfig class
I use Microsoft Azure Machine Learning (Azure-ml) to run my (python) experiments.
For specifying the VM and python environment I use:
from azureml.core import Environment
from azureml.core import ScriptRunConfig
# Other imports and code...
#…

Stefan
- 919
- 2
- 13
- 24
8
votes
0 answers
Getting error Missing required package "azureml-dataset-runtime" in VSCode
I am trying to setup my virtual environment for Azure in VS Code. I have installed the required packages, e.g., azureml-core and azureml-widgets and azureml-dataset-runtime. Both azureml-core and azureml-widget work fine, however, I keep getting an…

raziiq
- 115
- 3
4
votes
0 answers
How to store the output dataframe/data of an azure ml job as a data asset
I've been following this "tutorial" by azure on how to create an end to end pipeline in azure: https://github.com/Azure/azureml-examples/blob/main/tutorials/e2e-ds-experience/e2e-ml-workflow.ipynb
I am doing something similar, whereas instead of…

Mase
- 85
- 2
- 11
4
votes
1 answer
Write to a mounted filesystem in azureml with azureml-sdk
I am trying to use and AMLCompute instance to preprocess my data. To do so I need to be able to write the processed data back to the datastore. I am taking this approach because the cluster will automatically shutdown when it is complete so I can…

B. Bogart
- 998
- 6
- 15
4
votes
2 answers
Azure ML workspace: how to publish pipeline to existing endpoint instead of creating new
I'm working on deploying an inference pipeline in Azure machine learning workspace.
I have created a pipeline using a couple of PythonScriptSteps and want to automate the pipeline publishing using CI/CD.
Reference:…

subra
- 41
- 2
3
votes
0 answers
How to copy data directly from Azure blob storage to compute instance SSD?
In order to speed up model training in Azure ML, I am using Azure DataReference's as_download() functionality to download the data from blob storage to a compute instance, instead of mounting. To do that I am using PythonScriptStep(...). However,…

Sina
- 154
- 11
3
votes
1 answer
Azure ML Studio Designer - Is it possible to copy pipeline or pipeline drafts from one workspace to another?
Is it possible to export or copy Pipelines created in Azure ML Studio Designer from one Workspace to another, using the UI, python sdk, and/or azure CLI? If so, how?
EDIT: My Designer does not appear to have the 'Export To Code' option that…

D. Reagan
- 841
- 1
- 8
- 24
3
votes
1 answer
SSL Error accessing azure datastore for Azure Auto ML
I am implementing Azure AutoML dashboard in a docker container.
When I access container without Docker it works. But in docker it gives SSL Error.
def upload_dataset_to_blob(ws):
datastore = ws.get_default_datastore()
…

Ravish
- 31
- 1
2
votes
1 answer
Retrieving current job for Azure ML v2
Using the v2 Azure ML Python SDK (azure-ai-ml) how do I get an instance of the currently running job?
In v1 (azureml-core) I would do:
from azureml.core import Run
run = Run.get_context()
if isinstance(run, Run):
print("Running on…

casparjespersen
- 3,460
- 5
- 38
- 63
2
votes
0 answers
How to pass a string through pipeline steps azureml sdk v2?
There is a way to pass a string from a pipeline step to another in azure machine learning sdk v2? E.g.:
def step_1():
var: str = 'lorem ipsum'
return var # or
step_1.var = var
def step_2(var:…
2
votes
1 answer
azureml score.py not reading additional json file
I have a json file which I am using in score.py however, it is not being found. When making a post request to the endpoint I get the following error "No such file or directory: '/var/azureml-app/model_adjustments.json'"
json file is in the same…

Muhammad Pathan
- 429
- 3
- 12
2
votes
1 answer
AzureML - CLIv2 - Mount Datastore
I've created a simple script in order to understand the interaction between AzureML and AzureStorage in AzureML CLIv2.
I would like to download MNIST Dataset and store in on a datastore.
First, i declared my datastore in AzureML :
I've created a…

FrsECM
- 245
- 2
- 16
2
votes
2 answers
AzureML Authentication for registering datasets using azureml.core.dataset
I am trying to register a data set programmatically using azurecli authentication
What I tried
authentication = AzureCliAuthentication()
workspace = Workspace.from_config( "config.json"), auth=authentication)
store = Datastore.get(workspace,…

frictionlesspulley
- 11,070
- 14
- 66
- 115
2
votes
1 answer
How to import modules in Azure Machine Learning run script?
I am new to Azure Machine Learning and have been struggling with importing modules into my run script. I am using the AzureML SDK for Python. I think I somehow have to append the script location to PYTHONPATH, but have been unable to do so.
To…

user5211657
- 73
- 8
2
votes
2 answers
AzureML webservice deployment with custom Environment - /var/runit does not exist
I'm struggling to deploy a model with a custom environment through the azureml SDK.
I have built a docker image locally and pushed it to azure container registry to use it for environment instantiating. This is how my dockerfile looks like:
FROM…

Adrián Vélez
- 21
- 1