Professional Documents
Culture Documents
drive.mount('/gdrive')
import numpy
X = dataset[:,0:8]
Y = dataset[:,8]
# create model
model = Sequential()
input=Input(shape=(12,1))
x1=layers.Dense(8,activation='relu')(input)
x2=layers.Dense(1,activation='softmax')(x1)
modelf=Model(input,x2)
# Compile model
plt.plot(history.history[ "accuracy" ])
plt.plot(history.history[ "val_accuracy" ])
plt.title( "model accuracy" )
plt.ylabel( "accuracy" )
plt.xlabel( "epoch" )
plt.show()
plt.plot(history.history[ "loss" ])
plt.plot(history.history[ "val_loss" ])
plt.ylabel( "loss" )
plt.xlabel( "epoch" )
plt.savefig("/gdrive/My Drive/DEEPLEARNINGLAB/Exp1loss.png")
plt.show()
scores = model.evaluate(X, Y)