Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update samples from Release-158 as a part of SDK release #1812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions SECURITY.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
from keras.utils import to_categorical
from keras.callbacks import Callback
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.losses import categorical_crossentropy
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.callbacks import Callback

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -64,8 +65,8 @@
model.add(Dropout(0.3))
model.add(Dense(num_classes, activation='softmax'))

model.compile(loss=keras.losses.categorical_crossentropy,
optimizer=keras.optimizers.Adam(),
model.compile(loss=categorical_crossentropy,
optimizer=Adam(),
metrics=['accuracy'])

# start an Azure ML run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,19 @@
"%%writefile conda_dependencies.yml\n",
"\n",
"dependencies:\n",
"- python=3.6.2\n",
"- python=3.8\n",
"- pip==20.2.4\n",
"- pip:\n",
" - azureml-core\n",
" - azureml-dataset-runtime\n",
" - keras==2.4.3\n",
" - tensorflow==2.4.3\n",
" - keras==2.6\n",
" - tensorflow-gpu==2.6\n",
" - numpy\n",
" - scikit-learn\n",
" - pandas\n",
" - matplotlib"
" - matplotlib\n",
" - protobuf==3.20.1\n",
" - typing-extensions==4.3.0"
]
},
{
Expand Down