how to change array of arrays to simpe array 1

how to change array of arrays to simpe array

p = np.concatenate(p, axis = 0 )

Here is what the above code is Doing:
1. We are creating a list of all the images in the directory
2. We are creating a list of all the labels in the directory
3. We are converting the list of images into a numpy array
4. We are converting the list of labels into a numpy array
5. We are concatenating the images and labels into a single numpy array

Similar Posts