0
# Predict from the test dataset
prediction1 = svn.predict(X_test)

# Calculate the accuracy
from sklearn.metrics import accuracy_score
accuracy=(accuracy_score(y_test,prediction1)*100)
print("The accuracy in case of Supprt Vector Machine algorithm is:",accuracy)

The Output as

TypeError                                 Traceback (most recent call last)
<ipython-input-105-d206708fc3e4> in <cell line: 7>()
      5 from sklearn.metrics import accuracy_score
      6 accuracy=(accuracy_score(y_test,prediction1)*100)
----> 7 print("The accuracy in case of Supprt Vector Machine algorithm is:",accuracy)

TypeError: 'tuple' object is not callable

The output is not showing.What is the problem?

Barmar
  • 741,623
  • 53
  • 500
  • 612

0 Answers0