Re: [Matplotlib-users] trouble with Wt argument of matplotlib.mlab.PCA

2012-06-16 Thread Aronne Merrelli
On Tue, Jun 12, 2012 at 1:03 AM, Justin R wrote: > operating system Windows 7 > matplotlib version : 1.1.0 > obtained from sourceforge > > the class seems to generate the same Wt matrix for every input. The > every element of the weight matrix is either +sqrt(1/2) or -sqrt(1/2). > > dat1 = 4*np.ra

Re: [Matplotlib-users] trouble with Wt argument of matplotlib.mlab.PCA

2012-06-14 Thread Goyo
2012/6/12 Paul Hobson : > On Mon, Jun 11, 2012 at 11:03 PM, Justin R wrote: > Justin, could you post a self-contained script that demonstrates the > issue? Where does this PCA function come from? It comes from matplotlib.mlab. Just add these imports before the OP's code: import numpy as np from

Re: [Matplotlib-users] trouble with Wt argument of matplotlib.mlab.PCA

2012-06-14 Thread Warren Weckesser
On Tue, Jun 12, 2012 at 11:59 AM, Paul Hobson wrote: > On Mon, Jun 11, 2012 at 11:03 PM, Justin R wrote: > > operating system Windows 7 > > matplotlib version : 1.1.0 > > obtained from sourceforge > > > > the class seems to generate the same Wt matrix for every input. The > > every element of th

Re: [Matplotlib-users] trouble with Wt argument of matplotlib.mlab.PCA

2012-06-12 Thread Paul Hobson
On Mon, Jun 11, 2012 at 11:03 PM, Justin R wrote: > operating system Windows 7 > matplotlib version : 1.1.0 > obtained from sourceforge > > the class seems to generate the same Wt matrix for every input. The > every element of the weight matrix is either +sqrt(1/2) or -sqrt(1/2). > > dat1 = 4*np.r

[Matplotlib-users] trouble with Wt argument of matplotlib.mlab.PCA

2012-06-11 Thread Justin R
operating system Windows 7 matplotlib version : 1.1.0 obtained from sourceforge the class seems to generate the same Wt matrix for every input. The every element of the weight matrix is either +sqrt(1/2) or -sqrt(1/2). dat1 = 4*np.random.randn(200,1) + 2 dat2 = dat1*.25 + 1*np.random.randn(200,1)