i use the same code of linear Regression with multiple features which is taught by prateek bhaiya
r2_score of my code for training data is 96
but when i submit i got -34% accurate
plz check my code
Accuracy is -34% please help
hey @anandprakash1091971 ,
Can you please provide me with link to your code , so that i can have a look and understand what is the main problem.
Thank You.
this is my code
hey @anandprakash1091971 ,
there were many things being done wrong in the code ,
- That you added another with values to be 1 in training set , but not in testing set and to correct it it required many changes .
- If you are normalizing training data , then you also need to normalize the test data other wise those non-normalized testing points will act as a kind of outliers to the algorithm. So for now i have not used it.
I have modified your code a bit , and tested my code with train_test_split and it should me 96% accurate. I hope if i would submit this , then i would be achieving score near by 96.
So , have a look at this code
I hope this would resolve your doubt. if still there is some thing that you can’t understand , then you can surely ask me.
Thank You and Happy Coding .
your code is not opening
no problem sir
now i my code accuracy is 96% which is good
but in leaderboard some students have score 100%
is it possible??
No , they are our coding blocks mentors who have submitted the actual csv file , while they were testing the platform.
Great.
hey @anandprakash1091971 ,
I guess your doubt is now resolved. kindly mark this doubt as resolved in your courses’s Ask Doubt Section and also do provide your valuable feedback as it help us to improve this platform and provide you better learning experience.
Thank You and Happy Learning .