Question about reshaping matrix (DLS Course 1, Week 2, Exercise 2)

Hello Vinwilbe,

Welcome to the community!

Here’s a brilliant thread posted by Super mentor Paul (sir), would give you a detailed idea on why we specifically use X_flatten = X.reshape(X.shape[0], -1).T to reshape the matrix.

1 Like