Negative accuracy

I am getting negative score in this challenge.

here is the link to my code:

https://drive.google.com/file/d/1GDNC__xo1ehX2LvdeedW_9WSOmAN3UJR/view?usp=sharing

Hey @Varunsh_20, the negative accuracy is due to the reason that your r2_score comes negative. Read about negative r2 score here. Also the main reason behind negative score is that, dataset size (test as well as train) is quite low, There are only 20 rows in test data. So your model needs to highly accurate else it will receive negative accuracy. For better testing go to the actual kaggle competition related to this and check your scores there. Hopefully this flaw with the challenge will be resolved very soon.

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.