Experiment 1 done

This commit is contained in:
Lillian Violet 2024-09-05 10:36:24 +02:00
parent a911943176
commit 032b05b9c3

View file

@ -20,7 +20,7 @@ registered_model_name = "diabetes_model"
def main():
# 1. Create or Load a ML client
ml_client = XXXX()
ml_client = create_or_load_ml_client()
# 2. Create compute resources
create_or_load_aml()
@ -29,7 +29,7 @@ def main():
create_tabular_dataset()
latest_version_dataset = next(
dataset.latest_version
for dataset in ml_client.data.XXXX
for dataset in ml_client.data.list()
if dataset.name == name_dataset
)
@ -40,15 +40,15 @@ def main():
data=Input(
type=AssetTypes.URI_FILE,
# @latest doesn't work with dataset paths
path=XXXX,
path=f"azureml:{name_dataset}:{latest_version_dataset}",
),
registered_model_name=registered_model_name,
),
code=experiment_folder,
command=(
"python ${{inputs.script_name}}"
+ " --data XXXX"
+ " --registered_model_name XXXX"
+ " --data ${{inputs.data}}"
+ " --registered_model_name ${{inputs.registered_model_name}}"
),
environment=f"{custom_env_name}@latest",
compute=AML_COMPUTE_NAME,