Getting -7816% Accuracy

Why am I getting such a high negative score? I matched the values of theet0 and theeta1 from sklearn’s LinearRegression , they are same upto atleast 6 decimal places, and solution from sklearn and mine are also same.

Resolved

  • Was getting WA because of the wrong output format.
  • Forgot to make index = False while saving my solution to a csv file.