Doubt in the coding part

At about 11:23 in the video, concatenation is done. I am not able to understand why it is done.
also, what will be the shape of face_dataset numpy array ?

hey @ishabehera ,
As you know, we currently face data and labels as lists of list hence we used concatenate function to join those inner list into one list.

for face_data ,
we have to read multiple .npy files and combine them into one. As currently we have only one such file hence in this concatenate wouldn’t perform anything and hence we get shape (1,7,30000) before concatenation and after concatenation , ( we combine inner list into one list ) it results into , (7,30000)

if we would be having 5 such .npy files , then
before concatenation , face_data shape = (5,7,30000)
after concatenation , face_data shape = (35,30000)

similarily for labels,
if we would be having 5 .npy files for labels, then
before concatenation , labels shape = (5,7)
after concatenation , labels shape = (35,)

I hope this would have resolved your doubt.
Happy learning :slight_smile:.