Skip to content

Commit 6cc8af8

Browse files
authored
Merge pull request Azure#1565 from Azure/release_update/Release-107
update samples from Release-107 as a part of SDK release 1.33
2 parents 5cb4651 + f61898f commit 6cc8af8

File tree

37 files changed

+2056
-173
lines changed

37 files changed

+2056
-173
lines changed

configuration.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"source": [
104104
"import azureml.core\n",
105105
"\n",
106-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
106+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
107107
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
108108
]
109109
},

how-to-use-azureml/automated-machine-learning/automl_env.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ dependencies:
2121

2222
- pip:
2323
# Required packages for AzureML execution, history, and data preparation.
24-
- azureml-widgets~=1.32.0
24+
- azureml-widgets~=1.33.0
2525
- pytorch-transformers==1.0.0
2626
- spacy==2.1.8
2727
- https://aka.ms/automl-resources/packages/en_core_web_sm-2.1.0.tar.gz
28-
- -r https://automlresources-prod.azureedge.net/validated-requirements/1.32.0/validated_win32_requirements.txt [--no-deps]
28+
- -r https://automlresources-prod.azureedge.net/validated-requirements/1.33.0/validated_win32_requirements.txt [--no-deps]
29+
- arch==4.14

how-to-use-azureml/automated-machine-learning/automl_env_linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ dependencies:
2121

2222
- pip:
2323
# Required packages for AzureML execution, history, and data preparation.
24-
- azureml-widgets~=1.32.0
24+
- azureml-widgets~=1.33.0
2525
- pytorch-transformers==1.0.0
2626
- spacy==2.1.8
2727
- https://aka.ms/automl-resources/packages/en_core_web_sm-2.1.0.tar.gz
28-
- -r https://automlresources-prod.azureedge.net/validated-requirements/1.32.0/validated_linux_requirements.txt [--no-deps]
28+
- -r https://automlresources-prod.azureedge.net/validated-requirements/1.33.0/validated_linux_requirements.txt [--no-deps]
29+
- arch==4.14

how-to-use-azureml/automated-machine-learning/automl_env_mac.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ dependencies:
2222

2323
- pip:
2424
# Required packages for AzureML execution, history, and data preparation.
25-
- azureml-widgets~=1.32.0
25+
- azureml-widgets~=1.33.0
2626
- pytorch-transformers==1.0.0
2727
- spacy==2.1.8
2828
- https://aka.ms/automl-resources/packages/en_core_web_sm-2.1.0.tar.gz
29-
- -r https://automlresources-prod.azureedge.net/validated-requirements/1.32.0/validated_darwin_requirements.txt [--no-deps]
29+
- -r https://automlresources-prod.azureedge.net/validated-requirements/1.33.0/validated_darwin_requirements.txt [--no-deps]
30+
- arch==4.14

how-to-use-azureml/automated-machine-learning/classification-bank-marketing-all-features/auto-ml-classification-bank-marketing-all-features.ipynb

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
"import azureml.core\n",
8787
"from azureml.core.experiment import Experiment\n",
8888
"from azureml.core.workspace import Workspace\n",
89-
"from azureml.automl.core.featurization import FeaturizationConfig\n",
9089
"from azureml.core.dataset import Dataset\n",
9190
"from azureml.train.automl import AutoMLConfig\n",
9291
"from azureml.interpret import ExplanationClient"
@@ -105,7 +104,7 @@
105104
"metadata": {},
106105
"outputs": [],
107106
"source": [
108-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
107+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
109108
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
110109
]
111110
},
@@ -599,27 +598,21 @@
599598
"from azureml.automl.core.onnx_convert import OnnxConvertConstants\n",
600599
"from azureml.train.automl import constants\n",
601600
"\n",
602-
"if sys.version_info < OnnxConvertConstants.OnnxIncompatiblePythonVersion:\n",
603-
" python_version_compatible = True\n",
604-
"else:\n",
605-
" python_version_compatible = False\n",
606-
"\n",
607-
"import onnxruntime\n",
608601
"from azureml.automl.runtime.onnx_convert import OnnxInferenceHelper\n",
609602
"\n",
610603
"def get_onnx_res(run):\n",
611604
" res_path = 'onnx_resource.json'\n",
612605
" run.download_file(name=constants.MODEL_RESOURCE_PATH_ONNX, output_file_path=res_path)\n",
613606
" with open(res_path) as f:\n",
614-
" onnx_res = json.load(f)\n",
615-
" return onnx_res\n",
607+
" result = json.load(f)\n",
608+
" return result\n",
616609
"\n",
617-
"if python_version_compatible:\n",
610+
"if sys.version_info < OnnxConvertConstants.OnnxIncompatiblePythonVersion:\n",
618611
" test_df = test_dataset.to_pandas_dataframe()\n",
619612
" mdl_bytes = onnx_mdl.SerializeToString()\n",
620-
" onnx_res = get_onnx_res(best_run)\n",
613+
" onnx_result = get_onnx_res(best_run)\n",
621614
"\n",
622-
" onnxrt_helper = OnnxInferenceHelper(mdl_bytes, onnx_res)\n",
615+
" onnxrt_helper = OnnxInferenceHelper(mdl_bytes, onnx_result)\n",
623616
" pred_onnx, pred_prob_onnx = onnxrt_helper.predict(test_df)\n",
624617
"\n",
625618
" print(pred_onnx)\n",
@@ -708,14 +701,12 @@
708701
"source": [
709702
"from azureml.core.model import InferenceConfig\n",
710703
"from azureml.core.webservice import AciWebservice\n",
711-
"from azureml.core.webservice import Webservice\n",
712704
"from azureml.core.model import Model\n",
713-
"from azureml.core.environment import Environment\n",
714705
"\n",
715706
"inference_config = InferenceConfig(entry_script=script_file_name)\n",
716707
"\n",
717-
"aciconfig = AciWebservice.deploy_configuration(cpu_cores = 1, \n",
718-
" memory_gb = 1, \n",
708+
"aciconfig = AciWebservice.deploy_configuration(cpu_cores = 2, \n",
709+
" memory_gb = 2, \n",
719710
" tags = {'area': \"bmData\", 'type': \"automl_classification\"}, \n",
720711
" description = 'sample service for Automl Classification')\n",
721712
"\n",
@@ -792,7 +783,6 @@
792783
"metadata": {},
793784
"outputs": [],
794785
"source": [
795-
"import json\n",
796786
"import requests\n",
797787
"\n",
798788
"X_test_json = X_test.to_json(orient='records')\n",
@@ -832,7 +822,6 @@
832822
"source": [
833823
"%matplotlib notebook\n",
834824
"from sklearn.metrics import confusion_matrix\n",
835-
"import numpy as np\n",
836825
"import itertools\n",
837826
"\n",
838827
"cf =confusion_matrix(actual,y_pred)\n",

how-to-use-azureml/automated-machine-learning/classification-credit-card-fraud/auto-ml-classification-credit-card-fraud.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"metadata": {},
9494
"outputs": [],
9595
"source": [
96-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
96+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
9797
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
9898
]
9999
},

how-to-use-azureml/automated-machine-learning/classification-text-dnn/auto-ml-classification-text-dnn.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"metadata": {},
9797
"outputs": [],
9898
"source": [
99-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
99+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
100100
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
101101
]
102102
},

how-to-use-azureml/automated-machine-learning/continuous-retraining/auto-ml-continuous-retraining.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"metadata": {},
8282
"outputs": [],
8383
"source": [
84-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
84+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
8585
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
8686
]
8787
},

how-to-use-azureml/automated-machine-learning/experimental/classification-credit-card-fraud-local-managed/auto-ml-classification-credit-card-fraud-local-managed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"metadata": {},
9393
"outputs": [],
9494
"source": [
95-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
95+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
9696
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
9797
]
9898
},

how-to-use-azureml/automated-machine-learning/experimental/regression-model-proxy/auto-ml-regression-model-proxy.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"metadata": {},
9292
"outputs": [],
9393
"source": [
94-
"print(\"This notebook was created using version 1.32.0 of the Azure ML SDK\")\n",
94+
"print(\"This notebook was created using version 1.33.0 of the Azure ML SDK\")\n",
9595
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
9696
]
9797
},

0 commit comments

Comments
 (0)