From a9119431760d76198c2379cb0799cc2e1d9c80f9 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 5 Sep 2024 10:21:42 +0200 Subject: [PATCH] Just run from the folder it's in, and finished environment --- azuremlpythonsdk-v2/data_tabular.py | 2 +- azuremlpythonsdk-v2/environment.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azuremlpythonsdk-v2/data_tabular.py b/azuremlpythonsdk-v2/data_tabular.py index 70fba6a..c563e12 100644 --- a/azuremlpythonsdk-v2/data_tabular.py +++ b/azuremlpythonsdk-v2/data_tabular.py @@ -7,7 +7,7 @@ from azure.ai.ml.entities import Data from ml_client import create_or_load_ml_client name_dataset = "diabetes-dataset" -data_folder = "./azuremlpythonsdk-v2/data/diabetes.csv" +data_folder = "./data/diabetes.csv" def create_tabular_dataset(): diff --git a/azuremlpythonsdk-v2/environment.py b/azuremlpythonsdk-v2/environment.py index 6939c9f..1748661 100644 --- a/azuremlpythonsdk-v2/environment.py +++ b/azuremlpythonsdk-v2/environment.py @@ -13,12 +13,12 @@ custom_env_name = "custom-scikit-learn" def create_docker_environment(): # 1. Create or Load a ML client - ml_client = XXXXX() + ml_client = create_or_load_ml_client() # 2. Create a Python environment for the experiment - env_docker_image = XXXXX( + env_docker_image = Environment( name=custom_env_name, - conda_file=os.path.join(dependencies_dir, "XXXXX"), + conda_file=os.path.join(dependencies_dir, "conda.yml"), image="mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04:latest", ) ml_client.environments.create_or_update(env_docker_image)