You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
How to get X and y out of test set?
If i place this code inside the loop to get precision, recall, and accuracy
it only show the confusion matrix of the last batch.
`for batch in test.as_numpy_iterator():
X, y = batch
yhat = model.predict(X)
pre.update_state(y, yhat)
re.update_state(y, yhat)
acc.update_state(y, yhat)
p_pred = yhat.flatten()
# extract the predicted class labels
y_pred = np.where(p_pred > 0.5, 1, 0)
m = confusion_matrix(y, y_pred)`
Can you guide me on how to create a confusion matrix for the code?
The text was updated successfully, but these errors were encountered: