From 0e17b33d2a02257b5867c31cc33ed8c4bb802d7d Mon Sep 17 00:00:00 2001 From: amlrelsa-ms Date: Tue, 20 Dec 2022 03:35:58 +0000 Subject: [PATCH] update samples from Release-173 as a part of SDK release --- .../deploy-multi-model/multi-model-register-and-deploy.ipynb | 2 +- .../deploy-to-cloud/model-register-and-deploy.ipynb | 4 ++-- .../deploy-aks-with-controlled-rollout.ipynb | 2 +- .../pipeline-for-image-classification.ipynb | 2 +- .../img-classification-part1-training.ipynb | 2 +- .../img-classification-part3-deploy-encrypted.ipynb | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/how-to-use-azureml/deployment/deploy-multi-model/multi-model-register-and-deploy.ipynb b/how-to-use-azureml/deployment/deploy-multi-model/multi-model-register-and-deploy.ipynb index 871cfd10..c1908bf8 100644 --- a/how-to-use-azureml/deployment/deploy-multi-model/multi-model-register-and-deploy.ipynb +++ b/how-to-use-azureml/deployment/deploy-multi-model/multi-model-register-and-deploy.ipynb @@ -239,7 +239,7 @@ "\n", "env = Environment(\"deploytocloudenv\")\n", "env.python.conda_dependencies.add_pip_package(\"joblib\")\n", - "env.python.conda_dependencies.add_pip_package(\"numpy\")\n", + "env.python.conda_dependencies.add_pip_package(\"numpy==1.23\")\n", "env.python.conda_dependencies.add_pip_package(\"scikit-learn=={}\".format(sklearn.__version__))" ] }, diff --git a/how-to-use-azureml/deployment/deploy-to-cloud/model-register-and-deploy.ipynb b/how-to-use-azureml/deployment/deploy-to-cloud/model-register-and-deploy.ipynb index 6bc9b916..a593061c 100644 --- a/how-to-use-azureml/deployment/deploy-to-cloud/model-register-and-deploy.ipynb +++ b/how-to-use-azureml/deployment/deploy-to-cloud/model-register-and-deploy.ipynb @@ -285,7 +285,7 @@ " 'azureml-defaults',\n", " 'inference-schema[numpy-support]',\n", " 'joblib',\n", - " 'numpy',\n", + " 'numpy==1.23',\n", " 'scikit-learn=={}'.format(sklearn.__version__)\n", "])" ] @@ -486,7 +486,7 @@ " 'azureml-defaults',\n", " 'inference-schema[numpy-support]',\n", " 'joblib',\n", - " 'numpy',\n", + " 'numpy==1.23',\n", " 'scikit-learn=={}'.format(sklearn.__version__)\n", "])\n", "inference_config = InferenceConfig(entry_script='score.py', environment=environment)\n", diff --git a/how-to-use-azureml/deployment/deploy-with-controlled-rollout/deploy-aks-with-controlled-rollout.ipynb b/how-to-use-azureml/deployment/deploy-with-controlled-rollout/deploy-aks-with-controlled-rollout.ipynb index 26031a08..cd89e6c3 100644 --- a/how-to-use-azureml/deployment/deploy-with-controlled-rollout/deploy-aks-with-controlled-rollout.ipynb +++ b/how-to-use-azureml/deployment/deploy-with-controlled-rollout/deploy-aks-with-controlled-rollout.ipynb @@ -110,7 +110,7 @@ " pip_packages=[\n", " 'azureml-defaults',\n", " 'inference-schema[numpy-support]',\n", - " 'numpy',\n", + " 'numpy==1.23',\n", " 'scikit-learn==0.22.1',\n", " 'scipy'\n", "])" diff --git a/how-to-use-azureml/work-with-data/datasets-tutorial/pipeline-with-datasets/pipeline-for-image-classification.ipynb b/how-to-use-azureml/work-with-data/datasets-tutorial/pipeline-with-datasets/pipeline-for-image-classification.ipynb index 64733b90..f19c258b 100644 --- a/how-to-use-azureml/work-with-data/datasets-tutorial/pipeline-with-datasets/pipeline-for-image-classification.ipynb +++ b/how-to-use-azureml/work-with-data/datasets-tutorial/pipeline-with-datasets/pipeline-for-image-classification.ipynb @@ -277,7 +277,7 @@ " - azureml-dataset-runtime\n", " - keras==2.6\n", " - tensorflow-gpu==2.6\n", - " - numpy\n", + " - numpy==1.23\n", " - scikit-learn\n", " - pandas\n", " - matplotlib\n", diff --git a/tutorials/image-classification-mnist-data/img-classification-part1-training.ipynb b/tutorials/image-classification-mnist-data/img-classification-part1-training.ipynb index 7fb7eb9e..a12877d5 100644 --- a/tutorials/image-classification-mnist-data/img-classification-part1-training.ipynb +++ b/tutorials/image-classification-mnist-data/img-classification-part1-training.ipynb @@ -431,7 +431,7 @@ "\n", "# to install required packages\n", "env = Environment('tutorial-env')\n", - "cd = CondaDependencies.create(pip_packages=['azureml-dataset-runtime[pandas,fuse]', 'azureml-defaults'], conda_packages = ['scikit-learn==0.22.1'])\n", + "cd = CondaDependencies.create(pip_packages=['azureml-dataset-runtime[pandas,fuse]', 'azureml-defaults'], conda_packages = ['scikit-learn==0.22.1', 'numpy==1.23'])\n", "\n", "env.python.conda_dependencies = cd\n", "\n", diff --git a/tutorials/image-classification-mnist-data/img-classification-part3-deploy-encrypted.ipynb b/tutorials/image-classification-mnist-data/img-classification-part3-deploy-encrypted.ipynb index ce646ac8..a77f7a35 100644 --- a/tutorials/image-classification-mnist-data/img-classification-part3-deploy-encrypted.ipynb +++ b/tutorials/image-classification-mnist-data/img-classification-part3-deploy-encrypted.ipynb @@ -82,7 +82,7 @@ "\n", "# to install required packages\n", "env = Environment('tutorial-encryption-env')\n", - "cd = CondaDependencies.create(pip_packages=['azureml-dataset-runtime[pandas,fuse]', 'azureml-defaults', 'azure-storage-blob', 'encrypted-inference==0.9'], conda_packages = ['scikit-learn==0.22.1'])\n", + "cd = CondaDependencies.create(pip_packages=['azureml-dataset-runtime[pandas,fuse]', 'azureml-defaults', 'azure-storage-blob', 'encrypted-inference==0.9'], conda_packages = ['scikit-learn==0.22.1', 'numpy==1.23'])\n", "\n", "env.python.conda_dependencies = cd\n", "\n",