We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in your train_*.py, at the end, your code is like this: yPreds = model.predict(testX) yPred = np.argmax(yPreds, axis=1) yTrue = testY
accuracy = metrics.accuracy_score(yTrue, yPred) * 100 error = 100 - accuracy print("Accuracy : ", accuracy) print("Error : ", error)
I don't understand why you used np.argmax(Preds, axis=1). I think you should use yPreds[yPreds >= 0.5] = 1 yPreds[yPreds < 0.5] = 0 yPred = yPreds
When you used model.predict, which weights did you use? the last one or the best one?
Many thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in your train_*.py, at the end, your code is like this:
yPreds = model.predict(testX)
yPred = np.argmax(yPreds, axis=1)
yTrue = testY
accuracy = metrics.accuracy_score(yTrue, yPred) * 100
error = 100 - accuracy
print("Accuracy : ", accuracy)
print("Error : ", error)
I don't understand why you used np.argmax(Preds, axis=1). I think you should use
yPreds[yPreds >= 0.5] = 1
yPreds[yPreds < 0.5] = 0
yPred = yPreds
When you used model.predict, which weights did you use? the last one or the best one?
Many thanks
The text was updated successfully, but these errors were encountered: