[Solved] ValueError when defining a lambda function in python

You have a bunch of 1000 element arrays: In [8]: p.shape Out[8]: (1000,) In [9]: K.shape Out[9]: (1000,) In [10]: R.shape Out[10]: (1000,) In [11]: np.minimum.reduce([p, K, R]).shape Out[11]: (1000,) In [12]: Vl(p).shape Out[12]: (1000,) In [8]: p.shape Out[8]: (1000,) In [9]: K.shape Out[9]: (1000,) In [10]: R.shape Out[10]: (1000,) In [11]: np.minimum.reduce([p, K, R]).shape … Read more