Regarding error in scikit-learn estimator

Viewed 14

How do I resolve this error: TypeError: cannot clone object.You should provide an instance of scikit-learn estimator instead of a class. While writing this code...

clf.fit(x_train,y_train)
y_pred=clf.predict(x_test)
print("Accuracy",accuracy_score(y_test,y_pred))
print("Precision",precision_score(y_test,y_pred))
0 Answers
Related