0
votes
model_SVC = SVC(C=1000,gamma=0.1, kernel='rbf')
model_SVC.fit(X_train,Y_train) #CASIA2

predictions=model_SVC.predict(X_test)

print(accuracy_score(Y_test,predictions))
print(confusion_matrix(Y_test,predictions))
print(classification_report(Y_test,predictions))
x="../input/miccf2000/MICC-F2000/MICC-F2000/Tampered/00007tamp1.jpg"
model_SVC.predict(x)

I am getting error for the code. Does anyone know how to fix this?

enter image description here

1

1 Answers

0
votes

In this line model_SVC.predict(x), the expected value for the parameter X is numeric. But a string with the path to an image is being provided: x="../input/miccf2000/MICC-F2000/MICC-F2000/Tampered/00007tamp1.jpg"