when i used rf.score(X_test,Y_pred) i got 100 percent but when i submitted i only got 83 %
Why i m getting low accuracy?
You are getting 100 percent on using rf.score coz your model is prediction outputs and comparing it to the y_pred, which you already calculated. So your output of rf.score = y_pred. You are comparing output with itself.
please help me to increase accuracy
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.