FIX Move pooling_func to constructor.
Merge pull request #3066 from denisgarci/agglomeration-transform-constructor

[MRG+1] Move pooling_func to constructor.