Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Warren Weckesser
On Mon, Nov 8, 2010 at 3:20 PM, Warren Weckesser < warren.weckes...@enthought.com> wrote: > > > On Mon, Nov 8, 2010 at 2:52 PM, Skipper Seabold wrote: > >> On Mon, Nov 8, 2010 at 3:45 PM, Warren Weckesser >> wrote: >> > >> > >> > On Mon, Nov 8, 2010 at 2:17 PM, Skipper Seabold >> wrote: >> >> >>

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Warren Weckesser
On Mon, Nov 8, 2010 at 2:52 PM, Skipper Seabold wrote: > On Mon, Nov 8, 2010 at 3:45 PM, Warren Weckesser > wrote: > > > > > > On Mon, Nov 8, 2010 at 2:17 PM, Skipper Seabold > wrote: > >> > >> On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold > >> wrote: > >> > I am doing some optimizations on

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Skipper Seabold
On Mon, Nov 8, 2010 at 4:04 PM, Bruce Southey wrote: > On 11/08/2010 02:52 PM, Skipper Seabold wrote: >> On Mon, Nov 8, 2010 at 3:42 PM, Bruce Southey  wrote: >>> On 11/08/2010 02:17 PM, Skipper Seabold wrote: On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold     wrote: > I am doing so

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Bruce Southey
On 11/08/2010 02:52 PM, Skipper Seabold wrote: > On Mon, Nov 8, 2010 at 3:42 PM, Bruce Southey wrote: >> On 11/08/2010 02:17 PM, Skipper Seabold wrote: >>> On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold >>> wrote: I am doing some optimizations on random samples. In a small number of >>>

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Skipper Seabold
On Mon, Nov 8, 2010 at 3:45 PM, Warren Weckesser wrote: > > > On Mon, Nov 8, 2010 at 2:17 PM, Skipper Seabold wrote: >> >> On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold >> wrote: >> > I am doing some optimizations on random samples.  In a small number of >> > cases, the objective is not well-d

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Skipper Seabold
On Mon, Nov 8, 2010 at 3:42 PM, Bruce Southey wrote: > On 11/08/2010 02:17 PM, Skipper Seabold wrote: >> On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold  wrote: >>> I am doing some optimizations on random samples.  In a small number of >>> cases, the objective is not well-defined for a given sampl

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Warren Weckesser
On Mon, Nov 8, 2010 at 2:17 PM, Skipper Seabold wrote: > On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold > wrote: > > I am doing some optimizations on random samples. In a small number of > > cases, the objective is not well-defined for a given sample (it's not > > possible to tell beforehand a

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Bruce Southey
On 11/08/2010 02:17 PM, Skipper Seabold wrote: > On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold wrote: >> I am doing some optimizations on random samples. In a small number of >> cases, the objective is not well-defined for a given sample (it's not >> possible to tell beforehand and hopefully wo

Re: [Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Skipper Seabold
On Mon, Nov 8, 2010 at 3:14 PM, Skipper Seabold wrote: > I am doing some optimizations on random samples.  In a small number of > cases, the objective is not well-defined for a given sample (it's not > possible to tell beforehand and hopefully won't happen much in > practice).  What is the most nu

[Numpy-discussion] Catching and dealing with floating point errors

2010-11-08 Thread Skipper Seabold
I am doing some optimizations on random samples. In a small number of cases, the objective is not well-defined for a given sample (it's not possible to tell beforehand and hopefully won't happen much in practice). What is the most numpythonic way to handle this? It doesn't look like I can use np