Advertisement
Guest User

incer_1

a guest
Nov 20th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #baris ke 68
  2. #train the model using the Adam optimizer
  3. print("[INFO] training network...")
  4. opt = Adam(lr=1e-3, decay=1e-3 / 50)
  5. model.compile(loss="categorical_crossentropy", optimizer=opt
  6. metrics=["accuracy"])
  7. H = model.fit(trainX, trainY, validation_data=(testX, testY),
  8. epochs=50, batch_size=32)
  9.  
  10. #evaluate the network
  11. print("[INFO] evaluating network...")
  12. predictions = model.predict(testX, batch_size=32)
  13. print(classification_report(testY.argmax(axis=1),
  14. predictions.argmmax(axis=1), target_names=lb.classes_))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement