[SciPy-User] kmeans (Re: Mailing list?)

David Warde-Farley dwf@cs.toronto....
Mon Nov 23 12:36:04 CST 2009

On 23-Nov-09, at 10:29 AM, Simon Friedberger wrote:

> Hi Robert,
> I agree with you in every respect. :)
> Now, it only remains to see if anybody knows how to get to the
> 'whitening' transformation so I can invert it or apply it to my other
> data.

The 'whiten' function is only two lines:

     std_dev = std(obs, axis=0)
     return obs / std_dev

codebook *= std(youroriginaldata, axis=0)

will invert the transformation done by whiten() and apply it to your  


More information about the SciPy-User mailing list