Compare commits

..

3 Commits

Author SHA1 Message Date
amlrelsa-ms
0e17b33d2a update samples from Release-173 as a part of SDK release 2022-12-20 03:35:58 +00:00
Harneet Virk
34d80abd26 Merge pull request #1864 from Azure/release_update/Release-172
update samples from Release-172 as a part of  SDK release
2022-12-16 09:28:16 -08:00
amlrelsa-ms
249278ab77 update samples from Release-172 as a part of SDK release 2022-12-15 17:32:05 +00:00
16 changed files with 24 additions and 17 deletions

View File

@@ -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__))"
]
},

View File

@@ -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",

View File

@@ -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",
"])"

View File

@@ -5,4 +5,4 @@ dependencies:
- matplotlib
- tqdm
- scipy
- sklearn
- scikit-learn

View File

@@ -5,4 +5,4 @@ dependencies:
- matplotlib
- tqdm
- scipy
- sklearn
- scikit-learn

View File

@@ -239,6 +239,7 @@
"available_packages = pkg_resources.working_set\n",
"pandas_ver = None\n",
"numpy_ver = None\n",
"sklearn_ver = None\n",
"for dist in list(available_packages):\n",
" if dist.key == 'pandas':\n",
" pandas_ver = dist.version\n",
@@ -247,12 +248,17 @@
" numpy_ver = dist.version\n",
" else:\n",
" numpy_ver = '1.21.6'\n",
" if dist.key == 'scikit-learn':\n",
" sklearn_ver = dist.version\n",
"pandas_dep = 'pandas'\n",
"numpy_dep = 'numpy'\n",
"sklearn_dep = 'scikit-learn'\n",
"if pandas_ver:\n",
" pandas_dep = 'pandas=={}'.format(pandas_ver)\n",
"if numpy_ver:\n",
" numpy_dep = 'numpy=={}'.format(numpy_ver)\n",
"if sklearn_ver:\n",
" sklearn_dep = 'scikit-learn=={}'.format(sklearn_ver)\n",
"\n",
"# Note: we build shap at commit 690245 for Tesla K80 GPUs\n",
"env.docker.base_dockerfile = f\"\"\"\n",
@@ -292,7 +298,8 @@
"pip uninstall -y xgboost && \\\n",
"conda install py-xgboost==1.3.3 && \\\n",
"pip uninstall -y numpy && \\\n",
"pip install {numpy_dep} \\\n",
"pip install {numpy_dep} &&\\\n",
"pip install {sklearn_dep} \\\n",
"\"\"\"\n",
"\n",
"env.python.user_managed_dependencies = True\n",

View File

@@ -6,5 +6,5 @@ dependencies:
- tensorflow
- tqdm
- scipy
- sklearn
- scikit-learn
- setuptools>=41.0.0

View File

@@ -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",

View File

@@ -2,7 +2,7 @@ name: quickstart-azureml-in-10mins
dependencies:
- pip:
- azureml-sdk
- sklearn
- scikit-learn
- numpy
- matplotlib
- joblib

View File

@@ -2,7 +2,7 @@ name: quickstart-azureml-python-sdk
dependencies:
- pip:
- azureml-sdk
- sklearn
- scikit-learn
- numpy
- matplotlib
- joblib

View File

@@ -2,5 +2,5 @@ name: tutorial-1st-experiment-sdk-train
dependencies:
- pip:
- azureml-sdk
- sklearn
- scikit-learn
- azureml-opendatasets

View File

@@ -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",

View File

@@ -4,7 +4,7 @@ dependencies:
- azureml-sdk
- azureml-widgets
- matplotlib
- sklearn
- scikit-learn
- pandas
- azureml-opendatasets
- azureml-widgets

View File

@@ -3,6 +3,6 @@ dependencies:
- pip:
- azureml-sdk
- matplotlib
- sklearn
- scikit-learn
- pandas
- azureml-opendatasets

View File

@@ -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",

View File

@@ -3,7 +3,7 @@ dependencies:
- pip:
- azureml-sdk
- matplotlib
- sklearn
- scikit-learn
- pandas
- azureml-opendatasets
- encrypted-inference==0.9