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