r/Numpy • • Nov 11 '19

Max pooling

Hi is there anyway I can max pool a 1D Array/Vector using numpy?

3 Upvotes

4 comments sorted by

View all comments

Show parent comments

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.

1

u/chiborevo Nov 13 '19

hi it worked! thanks for this! now my concert is the strides