I want to resample my dataset. This consists in categorical transformed data with labels of 3 classes. The amount of samples per class are:
I am considering a dummy 3d
array and assuming a 2d
array size by myself,
arr = np.random.rand(160, 10, 25)
orig_shape = arr.shape
print(orig_shape)
Output: (160, 10, 25)
arr = np.reshape(arr, (arr.shape[0], arr.shape[1]))
print(arr.shape)
Output: (4000, 10)
arr = np.reshape(arr, orig_shape))
print(arr.shape)
Output: (160, 10, 25)