Also:
def getWeights(envelopeOp):
weightsTuple = envelopeOp.Weights.Array
return [weightsTuple[j][i] for i in range(len(weightsTuple[0])) for j in
range(len(weightsTuple))]
xrange should be more efficient than range....
W dniu 2013-05-31 00:44, Eric Thivierge pisze:
On Thu, May 30, 2013 at 6:35 PM, Alok Gandhi <[email protected]
<mailto:[email protected]>> wrote:
Maybe you can still get some optimization using numpy, I think.
Throw your weights array directly into numpy. It is worth a try at
least.
I'll give it a shot tomorrow. :)
--------------------------------------------
Eric Thivierge
http://www.ethivierge.com