codebasics / py

Repository to store sample python programs for python learning
6.85k stars 16.77k forks source link

Reg Multiple Variable linear regression exercise #7

Open srmuslay opened 5 years ago

srmuslay commented 5 years ago

for Experience column, why you have filled empty values to zeros. why mean values are not filled like column test_score

Have-Purple commented 5 years ago

I think the logic for this is arbitrary. If you were an HR employee and did not have "experience" data for a candidate you would probably assume the candidate had "zero years" experience

I also have a gripe with step #34 in the solution where the author changes from median to mean for the test_score values. I assigned median value of "8" instead of the mean value "7" to the missing test score and my predictions were a little off but close.