Skip to content

Commit

Permalink
Upgrade to sklearn-1.5 from sklearn-1.1 (#3301)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-shepherd authored Jul 19, 2024
1 parent 70f0ddd commit c939dec
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ model:
code_configuration:
code: ../../model-1/onlinescoring/
scoring_script: score.py
environment: azureml://registries/azureml/environments/sklearn-1.1/versions/30
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
instance_type: Standard_DS3_v2
instance_count: 1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ model:
code_configuration:
code: ../../model-2/onlinescoring/
scoring_script: score.py
environment: azureml://registries/azureml/environments/sklearn-1.1/versions/30
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
instance_type: Standard_DS3_v2
instance_count: 1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ outputs:
type: uri_folder
best_result:
type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.1/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: .
command: >-
python compare2.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
outputs:
eval_output:
type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.1/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: .
command: >-
python eval.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
outputs:
score_output:
type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.1/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: .
command: >-
python score.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ outputs:
model_output:
type: uri_folder
code: .
environment: azureml://registries/azureml/environments/sklearn-1.1/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--training_data ${{inputs.training_data}}
Expand Down
2 changes: 1 addition & 1 deletion cli/jobs/pipelines/cifar-10/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
tar -xvzf cifar-10-python.tar.gz -C ${{outputs.cifar}};
rm cifar-10-python.tar.gz;
compute: azureml:gpu-cluster
environment: azureml://registries/azureml/environments/sklearn-1.1/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
outputs:
cifar:
type: uri_folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
type: uri_folder
mode: upload

environment: azureml://registries/azureml/environments/sklearn-1.1/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest

compute: azureml:cpu-cluster

Expand Down
2 changes: 1 addition & 1 deletion cli/jobs/single-step/scikit-learn/iris/job-sweep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trial:
--C ${{search_space.C}}
--kernel ${{search_space.kernel}}
--coef0 ${{search_space.coef0}}
environment: azureml:AzureML-sklearn-1.1@latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
inputs:
iris_csv:
type: uri_file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ tags:

# Not really used, but required by the schema
command: n/a
environment: azureml://registries/azureml/environments/sklearn-1.1-ubuntu20.04-py38-cpu/versions/17
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(\n",
" model_input_path=image_classification_node.outputs.best_model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(\n",
" model_input_path=image_classification_multilabel_node.outputs.best_model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(\n",
" model_input_path=image_instance_segmentation_node.outputs.best_model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(\n",
" model_input_path=image_object_detection_node.outputs.best_model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(\n",
" model_input_path=text_classification_node.outputs.best_model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(\n",
" model_input_path=text_classification_multilabel_node.outputs.best_model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
" command=\"python register.py \"\n",
" + \"--model_input_path ${{inputs.model_input_path}} \"\n",
" + \"--model_base_name ${{inputs.model_base_name}}\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.1/labels/latest\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
" )\n",
" register_model = command_func(model_input_path=text_ner_node.outputs.best_model)\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"name": "inputs",
"jupyter": {
"outputs_hidden": false,
"source_hidden": false
},
"name": "inputs",
"nteract": {
"transient": {
"deleting": false
Expand Down Expand Up @@ -254,7 +254,7 @@
" command=\"python read_write_data.py --input_data ${{inputs.cifar_zip}} --output_folder ${{outputs.cifar}}\",\n",
" inputs=inputs,\n",
" outputs=outputs,\n",
" environment=\"azureml-sklearn-1.1:30\",\n",
" environment=\"azureml://registries/azureml/environments/sklearn-1.5/labels/latest\",\n",
")\n",
"\n",
"# submit the command\n",
Expand Down Expand Up @@ -311,11 +311,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"name": "job",
"jupyter": {
"outputs_hidden": false,
"source_hidden": false
},
"name": "job",
"nteract": {
"transient": {
"deleting": false
Expand Down

0 comments on commit c939dec

Please sign in to comment.