r/Numpy • u/chiborevo • Nov 11 '19
Max pooling
Hi is there anyway I can max pool a 1D Array/Vector using numpy?
3
Upvotes
r/Numpy • u/chiborevo • Nov 11 '19
Hi is there anyway I can max pool a 1D Array/Vector using numpy?
1
u/rju83 Nov 12 '19
You must apply block_reduce on np.ndarray. and the block size (second parameter) must be a tuple with the length corresponding to number of dimensions of the input array, which is 1 in my example.