On Fri, Jun 15, 2012 at 4:50 PM, Yaroslav Halchenko <[email protected]> wrote: > > On Fri, 15 Jun 2012, [email protected] wrote: >> https://github.com/PyMVPA/PyMVPA/blob/master/mvpa2/misc/dcov.py#L160 >> looks like a double sum, but wikipedia only has one sum, elementwise product. > > sorry -- I might be slow -- what sum? there is only an outer product in > > 160: Axy = Ax[:, None] * Ay[None, :]
I shouldn't read to fast, I didn't see that you vectorized uv. ( And I found my silly mistake in the distance calculation while copying from script to file. compared to R which returns sqrt, >>> np.sqrt(dr) - 0.995387854787786 1.1102230246251565e-16 ) Josef > > >> When you have a nice implementation, I will (try to) borrow it :) > > do you mean I should remove all embedded comments? ;) > > yeah -- could be improved -- I just tried to stay descriptive and > generic so it could be used for both mass-univariate stats (like > corrcoef) and multivariate. and pretty much it is just only a > difference in how distances computed ;) -- otherwise 100% the same > code. > > -- > Yaroslav O. Halchenko > Postdoctoral Fellow, Department of Psychological and Brain Sciences > Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 > Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 > WWW: http://www.linkedin.com/in/yarik > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Scikit-learn-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
