I'm new to python, and I am desperately trying to use partial moments as factors in pipeline, without success. the problem is that I use a factor as an input for my custom factor and get the following error:
ValueError: could not broadcast input array from shape (20,8343) into shape (8343)
I cannot figure out how to compute along the right axis.
Could someone please help me on this ?
here is the code I use: