How can I visualize my data features to check if it linear or not?

If I have data like this:
x_train = np.array([[2104, 5, 1, 45], [1416, 3, 2, 40], [852, 2, 1, 35]])
y_train = np.array([460, 232, 178])

Can I plot my data features using matplotlib to check my hypothesis before I start developing my model?

You can plot aspects of your data.

But you don’t have a hypothesis until after you have completed training. That’s when you have
a model.

1 Like

However, plotting a data set with four features isn’t possible. Your human vision system only works in 3D.

1 Like

Yes you can do this by visualization also as well by performing the Hypothesis Testing also.