阅读背景:

如何将多个函数应用到numpy数组中?

来源:互联网 

I know how to vectorize() or apply function along axis .. but my case is a bit different. I have 1D array (z) that contains 1 or 0 and then I have a 2D array (x). I want to apply two different functions for every row in array-x depending on the value for this row in array-z.I know how to vectorize() or apply function alo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: