From 40dd229e9d99fc7934aaf2c4ee00f3aed07a5ee8 Mon Sep 17 00:00:00 2001 From: Bhavin000 <39612722+Bhavin000@users.noreply.github.com> Date: Thu, 1 Oct 2020 10:34:39 +0530 Subject: [PATCH] Update ann.py --- ANN/ann.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ANN/ann.py b/ANN/ann.py index 94c2a45..0ddae72 100644 --- a/ANN/ann.py +++ b/ANN/ann.py @@ -1,3 +1,4 @@ + ### tensorflow 2.0 ### # Artificial Neural Network @@ -37,12 +38,8 @@ # Part 2 - Now let's make the ANN! # Importing the Keras libraries and packages -import keras -from keras.models import Sequential -from keras.layers import Dense -from keras.layers import LeakyReLU,PReLU,ELU -from keras.layers import Dropout - +from tensorflow.keras.models import Sequential +from tensorflow.keras.layers import Dense # Initialising the ANN classifier = Sequential() @@ -65,8 +62,6 @@ print(model_history.history.keys()) # summarize history for accuracy -plt.plot(model_history.history['acc']) -plt.plot(model_history.history['val_acc']) plt.title('model accuracy') plt.ylabel('accuracy') plt.xlabel('epoch') @@ -74,8 +69,6 @@ plt.show() # summarize history for loss -plt.plot(model_history.history['loss']) -plt.plot(model_history.history['val_loss']) plt.title('model loss') plt.ylabel('loss') plt.xlabel('epoch')