Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 6:34 PM, Sebastian Berg wrote: > On Sa, 2014-02-15 at 18:20 -0500, alex wrote: > >> >> I'm not sure exactly what you mean by this. You are suggesting that >> if the svd fails with some kind of exception (possibly poorly or >> misleadingly worded) then it could be cleaned-

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread Sebastian Berg
On Sa, 2014-02-15 at 18:20 -0500, alex wrote: > > I'm not sure exactly what you mean by this. You are suggesting that > if the svd fails with some kind of exception (possibly poorly or > misleadingly worded) then it could be cleaned-up after the fact by > checking the input, and that this would

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 6:06 PM, Sebastian Berg wrote: > On Sa, 2014-02-15 at 17:35 -0500, josef.p...@gmail.com wrote: >> On Sat, Feb 15, 2014 at 5:12 PM, Skipper Seabold wrote: >> > On Sat, Feb 15, 2014 at 5:08 PM, wrote: >> >> >> >> On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg >> >> wrote:

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread Sturla Molden
wrote: > copy of np.pinv used in linear regression > https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tools/tools.py#L348 > (it's a recent change to streamline some of the linalg in regression, > and master only) Why not call lapack routine DGELSS instead? It does exactly this,

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread Sebastian Berg
On Sa, 2014-02-15 at 17:35 -0500, josef.p...@gmail.com wrote: > On Sat, Feb 15, 2014 at 5:12 PM, Skipper Seabold wrote: > > On Sat, Feb 15, 2014 at 5:08 PM, wrote: > >> > >> On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg > >> wrote: > >> > On Sa, 2014-02-15 at 16:37 -0500, alex wrote: > >> >> H

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread josef . pktd
On Sat, Feb 15, 2014 at 5:18 PM, alex wrote: > On Sat, Feb 15, 2014 at 5:08 PM, wrote: >> On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg >> wrote: >>> On Sa, 2014-02-15 at 16:37 -0500, alex wrote: Hello list, Here's another idea resurrection from numpy github comments that I've

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 5:08 PM, wrote: > On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg > wrote: >> On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >>> Hello list, >>> >>> Here's another idea resurrection from numpy github comments that I've >>> been advised could be posted here for re-discussio

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread josef . pktd
On Sat, Feb 15, 2014 at 5:12 PM, Skipper Seabold wrote: > On Sat, Feb 15, 2014 at 5:08 PM, wrote: >> >> On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg >> wrote: >> > On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >> >> Hello list, >> >> >> >> Here's another idea resurrection from numpy github co

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 5:08 PM, wrote: > On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg > wrote: >> On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >>> Hello list, >>> >>> Here's another idea resurrection from numpy github comments that I've >>> been advised could be posted here for re-discussio

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread Skipper Seabold
On Sat, Feb 15, 2014 at 5:08 PM, wrote: > On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg > wrote: > > On Sa, 2014-02-15 at 16:37 -0500, alex wrote: > >> Hello list, > >> > >> Here's another idea resurrection from numpy github comments that I've > >> been advised could be posted here for re-disc

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread josef . pktd
On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg wrote: > On Sa, 2014-02-15 at 16:37 -0500, alex wrote: >> Hello list, >> >> Here's another idea resurrection from numpy github comments that I've >> been advised could be posted here for re-discussion. >> >> The proposal would be to make np.linalg.sv

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread Sebastian Berg
On Sa, 2014-02-15 at 16:37 -0500, alex wrote: > Hello list, > > Here's another idea resurrection from numpy github comments that I've > been advised could be posted here for re-discussion. > > The proposal would be to make np.linalg.svd more like scipy.linalg.svd > with respect to input checking.

[Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
Hello list, Here's another idea resurrection from numpy github comments that I've been advised could be posted here for re-discussion. The proposal would be to make np.linalg.svd more like scipy.linalg.svd with respect to input checking. The argument against the change is raw speed; if you know