In R2 Score Calculation

While i am computing R2 score, my score is 2.220446049250313e-14, it is very less why so?Pls
Help

hey @lgoyal50_be19 ,
can you please share your code file, as it would be easier for me to understand what actually the problem is that you are stuck at.

Thank You :slightly_smiling_face:

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

hey @lgoyal50_be19 ,
There was just a small error in your hypothesis function , you have placed return command inside the for loop although it should be out of it.

Just correct and you will be able to score around 75.
To improve much more you need to play a bit with learning rate and number of iterations, or you try different algorithms.

I hope this will help you :slightly_smiling_face:.

Yeah thanku it is working now

I guess your doubt is now resolved.

So i would request you to kindly mark this as resolved in your course’s doubt section and also provide your valuable feedback , as it will help us to provide you with better learning experience.

Thank You and happy learning :slightly_smiling_face:.

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.