Compare commits

...

3 Commits

Author SHA1 Message Date
amlrelsa-ms
cf2e3804d5 update samples from Release-161 as a part of SDK release 2022-09-16 20:16:37 +00:00
Harneet Virk
b7be42357f Merge pull request #1814 from Azure/release_update/Release-160
update samples from Release-160 as a part of  SDK release
2022-09-12 18:57:44 -07:00
amlrelsa-ms
3ac82c07ae update samples from Release-160 as a part of SDK release 2022-09-13 01:24:40 +00:00
7 changed files with 22 additions and 18 deletions

View File

@@ -7,7 +7,6 @@ dependencies:
- flask - flask
- flask-cors - flask-cors
- gevent>=1.3.6 - gevent>=1.3.6
- jinja2
- ipython - ipython
- matplotlib - matplotlib
- ipywidgets - ipywidgets
@@ -16,3 +15,4 @@ dependencies:
- markupsafe<2.1.0 - markupsafe<2.1.0
- scipy>=1.5.3 - scipy>=1.5.3
- protobuf==3.20.0 - protobuf==3.20.0
- jinja2==3.0.3

View File

@@ -6,7 +6,6 @@ dependencies:
- flask - flask
- flask-cors - flask-cors
- gevent>=1.3.6 - gevent>=1.3.6
- jinja2
- ipython - ipython
- matplotlib - matplotlib
- azureml-dataset-runtime - azureml-dataset-runtime
@@ -16,3 +15,4 @@ dependencies:
- markupsafe<2.1.0 - markupsafe<2.1.0
- scipy>=1.5.3 - scipy>=1.5.3
- protobuf==3.20.0 - protobuf==3.20.0
- jinja2==3.0.3

View File

@@ -6,7 +6,6 @@ dependencies:
- flask - flask
- flask-cors - flask-cors
- gevent>=1.3.6 - gevent>=1.3.6
- jinja2
- ipython - ipython
- matplotlib - matplotlib
- ipywidgets - ipywidgets
@@ -16,3 +15,4 @@ dependencies:
- markupsafe<2.1.0 - markupsafe<2.1.0
- scipy>=1.5.3 - scipy>=1.5.3
- protobuf==3.20.0 - protobuf==3.20.0
- jinja2==3.0.3

View File

@@ -6,7 +6,6 @@ dependencies:
- flask - flask
- flask-cors - flask-cors
- gevent>=1.3.6 - gevent>=1.3.6
- jinja2
- ipython - ipython
- matplotlib - matplotlib
- ipywidgets - ipywidgets
@@ -16,3 +15,4 @@ dependencies:
- markupsafe<2.1.0 - markupsafe<2.1.0
- scipy>=1.5.3 - scipy>=1.5.3
- protobuf==3.20.0 - protobuf==3.20.0
- jinja2==3.0.3

View File

@@ -6,7 +6,6 @@ dependencies:
- flask - flask
- flask-cors - flask-cors
- gevent>=1.3.6 - gevent>=1.3.6
- jinja2
- ipython - ipython
- matplotlib - matplotlib
- azureml-dataset-runtime - azureml-dataset-runtime
@@ -17,3 +16,4 @@ dependencies:
- markupsafe<2.1.0 - markupsafe<2.1.0
- scipy>=1.5.3 - scipy>=1.5.3
- protobuf==3.20.0 - protobuf==3.20.0
- jinja2==3.0.3

View File

@@ -1,10 +1,11 @@
import keras from tensorflow.keras.models import Sequential
from keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Flatten
from keras.layers import Dense, Dropout, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D
from keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.layers import BatchNormalization
from keras.layers.normalization import BatchNormalization from tensorflow.keras.losses import categorical_crossentropy
from keras.utils import to_categorical from tensorflow.keras.optimizers import Adam
from keras.callbacks import Callback from tensorflow.keras.utils import to_categorical
from tensorflow.keras.callbacks import Callback
import numpy as np import numpy as np
import pandas as pd import pandas as pd
@@ -64,8 +65,8 @@ model.add(Dense(128, activation='relu'))
model.add(Dropout(0.3)) model.add(Dropout(0.3))
model.add(Dense(num_classes, activation='softmax')) model.add(Dense(num_classes, activation='softmax'))
model.compile(loss=keras.losses.categorical_crossentropy, model.compile(loss=categorical_crossentropy,
optimizer=keras.optimizers.Adam(), optimizer=Adam(),
metrics=['accuracy']) metrics=['accuracy'])
# start an Azure ML run # start an Azure ML run

View File

@@ -270,16 +270,19 @@
"%%writefile conda_dependencies.yml\n", "%%writefile conda_dependencies.yml\n",
"\n", "\n",
"dependencies:\n", "dependencies:\n",
"- python=3.6.2\n", "- python=3.8\n",
"- pip==20.2.4\n",
"- pip:\n", "- pip:\n",
" - azureml-core\n", " - azureml-core\n",
" - azureml-dataset-runtime\n", " - azureml-dataset-runtime\n",
" - keras==2.4.3\n", " - keras==2.6\n",
" - tensorflow==2.4.3\n", " - tensorflow-gpu==2.6\n",
" - numpy\n", " - numpy\n",
" - scikit-learn\n", " - scikit-learn\n",
" - pandas\n", " - pandas\n",
" - matplotlib" " - matplotlib\n",
" - protobuf==3.20.1\n",
" - typing-extensions==4.3.0"
] ]
}, },
{ {