![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
Flavio Coelho wrote:
Hi,
I noticed a new bug in the combination Numpy1.0rc1/Scipy0.5.1:
#generate a sample from a normal distribution: a=normal(0,1,10000) from scipy.stats.kde import gaussian_kde as kde d=kde(a) d.evaluate (arange(-1,1,0.1)) --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last)
/home/fccoelho/Documents/Papers/YFgame/<console>
/usr/lib/python2.4/site-packages/scipy/stats/kde.py in evaluate(self, points) 116 diff = self.dataset - points[:,i,newaxis] 117 tdiff = dot(self.inv_cov, diff) --> 118 energy = sum(diff*tdiff,axis=0)/2.0 119 result[i] = sum(exp(-energy),axis=0) 120
TypeError: sum() takes no keyword arguments
Are there any fixes available for this?
It's been fixed in SVN for a while now. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco