Why are we reshaping the labels here

what is the use od reshaping labels to (-1,1), like why is it necessary here , what will happen if we don’t do it

Hey @sankalparora5, because we need to concatenate this after to training matrix, so face_data will be of shape like say (1000,30000) (Assuming 100*100 image, with 3 channels rgb) Now we reshaped tha labels as well so they become of shape(1000,1). Now we can easily stack themselves vertically to get, train array having shape (1000,30001). If not done you will not be able to stack themselves.

Hope this resolved your doubt.
Plz mark it as resolved in my doubts section. :blush: