'What is type error while finding the accuracy_score?

accuracy=accuracy_score(y_test,prediction)
print("accuracy: %.2f%%" % (accuracy*100.0))

I tried with this code but it gives me type error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source