Compare commits
3 Commits
release_up
...
release_up
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf2e3804d5 | ||
|
|
b7be42357f | ||
|
|
3ac82c07ae |
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user