Why are we using np.flatten()?

why are we using np.flatten() ?

Hey @vineetchanana, flatten layer is used to break down an n-dimensional array into a single or 1 dimensional array as shown in the image below :

image

I hope this clears your doubt ! :slight_smile:
Happy Learning ! :slightly_smiling_face:

Please explain with context to the question

Hey, can you please ask it in context to the video ?..as I cannot see np.flatten discussed in the video.

Thanks !

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.