Created
February 6, 2021 15:58
-
-
Save AyishaR/0766d3c452923c6c8a1dc315112ab80d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
labels = ['No', 'Yes'] | |
# pick random test data sample from one batch | |
x = random.randint(0, len(Xtest) - 1) | |
output = model.predict(Xtest[x].reshape(1, -1))[0][0] | |
pred = (output>0.5).astype('int') | |
print("Predicted: ", labels[pred], "(", output, "-->", pred, ")") | |
print("True: ", labels[np.array(ytest)[x][0]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment