0

I using linear regression model to predict my data. Orig Data

When I using sns plot; I able to see the line cut's thru to all the data point. Using snsborn.lmplot

But when I using train_test_split function: The coeff & interc as below : Weight = [0.20504568] Intercept = -1.0383656275693958

But graph is totally out graph using train test split

How can I fix this?

Tep66
  • 9
  • 1

1 Answers1

0

My bad... i using the wrong X value for the line graph.

Tep66
  • 9
  • 1