File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
how-to-use-azureml/work-with-data/datasets-tutorial/pipeline-with-datasets Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1- import keras
2- from keras .models import Sequential
3- from keras .layers import Dense , Dropout , Flatten
4- from keras .layers import Conv2D , MaxPooling2D
5- from keras .layers .normalization import BatchNormalization
6- from keras .utils import to_categorical
7- from keras .callbacks import Callback
1+ from tensorflow .keras .models import Sequential
2+ from tensorflow .keras .layers import Dense , Dropout , Flatten
3+ from tensorflow .keras .layers import Conv2D , MaxPooling2D
4+ from tensorflow .keras .layers import BatchNormalization
5+ from tensorflow .keras .losses import categorical_crossentropy
6+ from tensorflow .keras .optimizers import Adam
7+ from tensorflow .keras .utils import to_categorical
8+ from tensorflow .keras .callbacks import Callback
89
910import numpy as np
1011import pandas as pd
6465model .add (Dropout (0.3 ))
6566model .add (Dense (num_classes , activation = 'softmax' ))
6667
67- model .compile (loss = keras . losses . categorical_crossentropy ,
68- optimizer = keras . optimizers . Adam (),
68+ model .compile (loss = categorical_crossentropy ,
69+ optimizer = Adam (),
6970 metrics = ['accuracy' ])
7071
7172# start an Azure ML run
Original file line number Diff line number Diff line change 270270 " %%writefile conda_dependencies.yml\n " ,
271271 " \n " ,
272272 " dependencies:\n " ,
273- " - python=3.6.2\n " ,
273+ " - python=3.8\n " ,
274+ " - pip==20.2.4\n " ,
274275 " - pip:\n " ,
275276 " - azureml-core\n " ,
276277 " - azureml-dataset-runtime\n " ,
277- " - keras==2.4.3 \n " ,
278- " - tensorflow==2.4.3 \n " ,
278+ " - keras==2.6 \n " ,
279+ " - tensorflow-gpu ==2.6 \n " ,
279280 " - numpy\n " ,
280281 " - scikit-learn\n " ,
281282 " - pandas\n " ,
282- " - matplotlib"
283+ " - matplotlib\n " ,
284+ " - protobuf==3.20.1\n " ,
285+ " - typing-extensions==4.3.0"
283286 ]
284287 },
285288 {
You can’t perform that action at this time.
0 commit comments