<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel">
    <title>gmane.comp.python.scientific.devel</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16556"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16555"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16554"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16553"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16552"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16551"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16550"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16549"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16548"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16547"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16546"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16545"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16544"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16543"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16542"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16541"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16540"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16539"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16538"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16537"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16556">
    <title>scipy.test() runs 0 tests</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16556</link>
    <description>&lt;pre&gt;Hi all,

Hopefully I'm not doing something too stupid here, but I've googled 
around quite a bit and can't seem to find any tips. Perhaps my google-fu 
is not strong enough. Anyway, I built scipy 0.11.0 in place, seemingly 
successfully, in ~/git/scipy. Ubuntu version is 12.04. I haven't added 
scipy 0.11 to the pypath yet so I'm running in the parent dir.

js&amp;lt; at &amp;gt;ubuntuVB12:~/git/scipy$ sudo aptitude install python-nose
&amp;lt;snip&amp;gt;
Setting up python-nose (1.1.2-3) ...

js&amp;lt; at &amp;gt;ubuntuVB12:~/git/scipy$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 &amp;gt;&amp;gt;&amp;gt; import scipy
 &amp;gt;&amp;gt;&amp;gt; scipy.test()
Running unit tests for scipy
NumPy version 1.6.1
NumPy is installed in /usr/lib/python2.7/dist-packages/numpy
SciPy version 0.11.0.dev-3852ce2
SciPy is installed in scipy
Python version 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3]
nose version 1.1.2

----------------------------------------------------------------------
Ran 0 tests in 0.161&lt;/pre&gt;</description>
    <dc:creator>Junkshops</dc:creator>
    <dc:date>2012-05-22T15:39:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16555">
    <title>Re: Code question about signal.ltisys.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16555</link>
    <description>&lt;pre&gt;


Ah, right.  Thanks.

Warren




_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Warren Weckesser</dc:creator>
    <dc:date>2012-05-22T10:05:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16554">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16554</link>
    <description>&lt;pre&gt;[clip]

I'd rather add `xlogy(x, y) = x*log(y)` that treats the case `x==0` specially to
scipy.special, than kludge around the issue by masking or turning warnings off.

&lt;/pre&gt;</description>
    <dc:creator>Pauli Virtanen</dc:creator>
    <dc:date>2012-05-22T09:15:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16553">
    <title>Re: Code question about signal.ltisys.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16553</link>
    <description>&lt;pre&gt;[clip]

These lines are equivalent, *unless* the class has __setattr__ defined.
That's the case here, so rewriting may end up in different behavior
than intended, depending on what __setattr__ does.

    Pauli
&lt;/pre&gt;</description>
    <dc:creator>Pauli Virtanen</dc:creator>
    <dc:date>2012-05-22T09:11:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16552">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16552</link>
    <description>&lt;pre&gt;
I works for 2d or nd if qk=None, and uses the (sometimes hidden) default axis=0.

If qk is given, it doesn't work but still uses axis=0 in the sum.

I would say typical state for a stats function that hasn't been
cleaned up. For the ones that I did clean up, I usually added the axis
keyword in cases like this.

Josef

&lt;/pre&gt;</description>
    <dc:creator>josef.pktd&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-22T03:29:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16551">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16551</link>
    <description>&lt;pre&gt;
Hmm, I didn't think it was intended for 2d cases since there is no
axis keyword and no tests for this. Docstring is unclear, but I've
only used it for 1d and...

import numpy as np

p = np.random.random((10,4))
p[2,3] = 0
q = np.random.random((10,4))
q[2,3] = 0

p /= p.sum(0)
q /= q.sum(0)

from scipy import stats

# bad logic for &amp;gt; 1d
# plus it would return inf, not a 1d array
stats.entropy(p,q)

stats.entropy(p.flatten(), q.flatten())

# len check not shape
q = np.random.random((10,3))

stats.entropy(p, q)

&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-22T02:43:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16550">
    <title>Code question about signal.ltisys.py</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16550</link>
    <description>&lt;pre&gt;While taking a look at https://github.com/scipy/scipy/pull/225, which makes
a small changes to signal/ltisys.py,I noticed the surrounding code, which
has lines like this:

            self.__dict__['num'], self.__dict__['den'] = normalize(*args)


My inclination is to rewrite that as

            self.num, self.den = normalize(*args)


But am I missing something?


Warren
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Warren Weckesser</dc:creator>
    <dc:date>2012-05-22T00:33:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16549">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16549</link>
    <description>&lt;pre&gt;
won't work as replacement, if qk is None then the function is
vectorized for axis=0

array([[ 0.13878479,  0.03527334,  0.12000785,  0.14706888],
       [ 0.07682377,  0.12749588,  0.15172758,  0.19499206],
       [ 0.10462715,  0.1766166 ,  0.        ,  0.09346067],
       [ 0.02208519,  0.14443609,  0.11331574,  0.15090141],
       [ 0.00830154,  0.06009464,  0.05424912,  0.11603281],
       [ 0.05205531,  0.0792505 ,  0.02387006,  0.0061777 ],
       [ 0.00526626,  0.08439299,  0.17298407,  0.09992403],
       [ 0.16510456,  0.07008839,  0.01962196,  0.07101189],
       [ 0.23265325,  0.15908956,  0.2072021 ,  0.08105922],
       [ 0.19429818,  0.06326201,  0.13702153,  0.03937134]])

array([ 1.9678332 ,  2.19817097,  2.0136922 ,  2.1379255 ])

8.3176218626994789
8.3176218626994789

Josef

&lt;/pre&gt;</description>
    <dc:creator>josef.pktd&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-21T23:34:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16548">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16548</link>
    <description>&lt;pre&gt;
https://github.com/scipy/scipy/pull/226

&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-21T23:23:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16547">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16547</link>
    <description>&lt;pre&gt;
+1,

buggy: if qk is given, then the function isn't vectorized.

Josef

&lt;/pre&gt;</description>
    <dc:creator>josef.pktd&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-21T23:11:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16546">
    <title>Re: warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16546</link>
    <description>&lt;pre&gt;
I like the mask version better.

- N
&lt;/pre&gt;</description>
    <dc:creator>Nathaniel Smith</dc:creator>
    <dc:date>2012-05-21T22:43:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16545">
    <title>warnings in scipy.stats.entropy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16545</link>
    <description>&lt;pre&gt;Currently in scipy.stats.entropy if you are not ignoring them you will
see warnings when the function is given a probability of zero even
though the case of zero is specifically handled in the function.
Rightly or wrongly this makes me cringe. What do people think about
fixing this by using seterr explicitly in the function or masking the
zeros. Eg.,

import numpy as np
from scipy.stats import entropy

prob = np.random.uniform(0,20, size=10)
prob[5] = 0
prob = prob/prob.sum()

np.seterr(all = 'warn')
entropy(prob) # too loud

Instead we could do (within entropy)

oldstate = np.geterr()
np.seterr(divide='ignore', invalid='ignore')
entropy(prob)
np.seterr(**oldstate)

or just mask the zeros in the first place if this is too much

idx = prob &amp;gt; 0
-np.sum(prob[idx] * np.log(prob[idx]))

Thoughts?

Skipper
&lt;/pre&gt;</description>
    <dc:creator>Skipper Seabold</dc:creator>
    <dc:date>2012-05-21T22:39:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16544">
    <title>Faster Hough/Radon transform (was sum_angle()sum_polar() functions)</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16544</link>
    <description>&lt;pre&gt;Thought I'd advertize this under a different subject heading. The sum_angle
function is really the inner loop but the timings are about 10x faster than
the Radon transform in skimage, so some here might be interested.

Chuck
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Charles R Harris</dc:creator>
    <dc:date>2012-05-21T21:25:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16543">
    <title>Re: scipy.signal.normalize problems?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16543</link>
    <description>&lt;pre&gt;If I change the allclose lines to have

allclose(0, outb[:,0], atol=1e-14) 

it works. I think that is what the original goal was, anyways. From the documentation of allclose, what I have written above result in ensuring

np.abs(0 - outb[:,0]) &amp;gt; atol + rtol * np.abs(outb[:,0])

with rtol defaulting to 1e-5. I'm still not sure about how things have been written for the 'b' argument of normalize being rank-2, so I can't guarantee that my fix makes things work for that. Should I file a bug report/submit a patch/send a git pull request, etc?

Cheers,

Josh Lawrence

On May 21, 2012, at 2:45 PM, Josh Lawrence wrote:

&lt;/pre&gt;</description>
    <dc:creator>Josh Lawrence</dc:creator>
    <dc:date>2012-05-21T19:11:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16542">
    <title>scipy.signal.normalize problems?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16542</link>
    <description>&lt;pre&gt;Hey all,

I've been having some problems designing a Chebyshev filter and I think I have narrowed down the hang-up to scipy.signal.normalize. I think what's going on in my case is that line 286 of filter_design.py (the first allclose call in the normalize function) is producing a false positive. Here's the function definition:

def normalize(b, a):
    """Normalize polynomial representation of a transfer function.

    If values of b are too close to 0, they are removed. In that case, a
    BadCoefficients warning is emitted.
    """
    b, a = map(atleast_1d, (b, a))
    if len(a.shape) != 1:
        raise ValueError("Denominator polynomial must be rank-1 array.")
    if len(b.shape) &amp;gt; 2:
        raise ValueError("Numerator polynomial must be rank-1 or"
                         " rank-2 array.")
    if len(b.shape) == 1:
        b = asarray([b], b.dtype.char)
    while a[0] == 0.0 and len(a) &amp;gt; 1:
        a = a[1:]
    outb = b * (1.0) / a[0]
    outa = a * (1.0) / a[0]
    if allclose(outb[:, 0], 0, rtol=1e&lt;/pre&gt;</description>
    <dc:creator>Josh Lawrence</dc:creator>
    <dc:date>2012-05-21T18:45:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16541">
    <title>Re: sum_angle() and sum_polar() functions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16541</link>
    <description>&lt;pre&gt;
Looks like you need to sell this as a faster Radon or Hough, angle_sum is a
bit too generic ;)

Chuck
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Charles R Harris</dc:creator>
    <dc:date>2012-05-21T16:20:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16540">
    <title>Re: sum_angle() and sum_polar() functions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16540</link>
    <description>&lt;pre&gt;On Mon, May 21, 2012 at 1:16 AM, Ralf Gommers
&amp;lt;ralf.gommers&amp;lt; at &amp;gt;googlemail.com&amp;gt; wrote:

In [47]: from scipy.misc.pilutil import radon as scipy_radon
In [50]: from skimage.transform import radon as scikits_radon

In [46]: a=np.random.randn(1000, 1000)

In [53]: angle_sum(a, .1).shape
Out[53]: (1100,)

In [54]: scikits_radon(a, [.1]).shape
Out[54]: (1415, 1)

In [55]: scipy_radon(a, [.1]).shape
Out[55]: (1000, 1)

In [56]: %timeit angle_sum(a, .1)
10 loops, best of 3: 24.7 ms per loop

In [57]: %timeit scikits_radon(a, [.1])
10 loops, best of 3: 136 ms per loop

In [58]: %timeit scipy_radon(a, [.1])
10 loops, best of 3: 47.6 ms per loop

In [59]: a.sum()
Out[59]: -682.83728184031156

In [60]: angle_sum(a, .1).sum()
Out[60]: -682.83728184032327

In [61]: scikits_radon(a, [.1]).sum()
Out[61]: -682.83727334014043

In [62]: scipy_radon(a, [.1]).sum()
Out[62]: 124316062.0


angle_sum() at least can be applied beyond image processing in the
analysis of coupling matrices or adjacency graphs. Both functions are
simple and&lt;/pre&gt;</description>
    <dc:creator>Robert Jördens</dc:creator>
    <dc:date>2012-05-21T08:06:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16539">
    <title>Re: sum_angle() and sum_polar() functions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16539</link>
    <description>&lt;pre&gt;

Could you time the scikits-image version, it's not obvious from reading the
code that it will be very slow?



My impression is that it would fit best in scikits-image. Perhaps ndimage
would be a reasonable place too. It's too specialized for numpy imho.

Ralf
_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Ralf Gommers</dc:creator>
    <dc:date>2012-05-21T07:16:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16538">
    <title>sum_angle() and sum_polar() functions</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16538</link>
    <description>&lt;pre&gt;Hello,
I submitted two functions to numpy that sum 2d matrices along angled
cartesian or polar coordinates.
https://github.com/numpy/numpy/pull/230
The two functions certainly have their main application in image
processing and might be better suited for scipy of scikits-image.

sum_angle() is not much more than the old scipy.misc.pilutils.radon()
transform. But the later is deprecated and has several problems
(floats, non-conserved sum(), interpolation, speed) as discussed in
the pull request.

The new scikits-image.transform.radon() appears to be more generic but
a bit complicated and potentially even slower than the
imrotate()-based version in scipy.

Could sum_angle() and sum_polar() find a place in scipy or
scikits-image or are they simple enough to be useful for numpy?

&lt;/pre&gt;</description>
    <dc:creator>Robert Jördens</dc:creator>
    <dc:date>2012-05-21T04:50:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16537">
    <title>Re: minimize(): being strict on options</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16537</link>
    <description>&lt;pre&gt;

A warning would indeed be useful here.

Ralf


_______________________________________________
SciPy-Dev mailing list
SciPy-Dev&amp;lt; at &amp;gt;scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-dev
&lt;/pre&gt;</description>
    <dc:creator>Ralf Gommers</dc:creator>
    <dc:date>2012-05-20T21:25:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.scientific.devel/16536">
    <title>Re: minimize(): tolerance unification</title>
    <link>http://permalink.gmane.org/gmane.comp.python.scientific.devel/16536</link>
    <description>&lt;pre&gt;Hi,

20.05.2012 16:44, Matt Newville kirjoitti:

This work was mostly done by Dennis Laxalde, I've only done some minor
fiddling around here.

[clip]

Good point. If this is not immediately clear after reading the
documentation, they should be improved.

[clip]

My first thought on this is that it would be mixing two separate things
--- nonlinear least squares, and optimization of scalar functions, and
I'm not so sure how desirable this is.

However, what we should have is a separate interface for least squares.
Most preferably, a thin wrapper to the solver routines themselves.
Currently, there is only one actual dedicated routine for this,
Levenberg-Marquardt, but it might make sense to do as lmfit does and
make it easy to use optimization solvers here (which would make it
easier for users to see how to do LSQ with constraints).

What to then do with the question of fancier higher-level interfaces to
fitting is not so clear to me --- curve_fit made it in, and two
different object oriented approaches have be&lt;/pre&gt;</description>
    <dc:creator>Pauli Virtanen</dc:creator>
    <dc:date>2012-05-20T20:48:13</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.scientific.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.scientific.devel</link>
  </textinput>
</rdf:RDF>

