0
$\begingroup$

I have made a linear regression using sklearn. I am wondering if there is a convenient way where I can plot the prediction versus a specified variable?

Alternatively, is there any other good way of visualising a linear regression model considering it involves n-dimensions?

Thanks for any help.

$\endgroup$
1
$\begingroup$

You cannot visualise the dimensions of an n-dimensional model all at once if n > 3. However, what you can do is plot the pairwise relationships between dimensions. You might want to look into the Seaborn library for visualisation tools.

$\endgroup$
1
  • $\begingroup$ Thank you for your answer. How can I actually plot pairwise relationships? Since the model takes multiple inputs from all features and not just 1 at a time $\endgroup$ Dec 7 '19 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.