[Numpy-discussion] Support for sparse matrix in Distance function (and clustering)?

Damian Eads eads@soe.ucsc....
Tue Dec 9 16:32:53 CST 2008


Hi,

Can you be more specific? Do you need sparse matrices to represent
observation vectors because they are sparse? Or do you need sparse
matrices to represent distance matrices because most vectors you are
clustering are similar while a few are dissimilar?

The clustering code is written mostly in C and does not support sparse
matrices. However, this should not matter because most of the
clustering code does not look at the raw observation vectors
themselves, just the distances passed as a distance matrix.

Damian

On Tue, Dec 9, 2008 at 1:28 PM, Bab Tei <babaktei@yahoo.com> wrote:
> Hi
> Does the distance function in spatial package support sparse matrix?
> regards
>
>
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
-----------------------------------------------------
Damian Eads                             Ph.D. Student
Jack Baskin School of Engineering, UCSC        E2-489
1156 High Street                 Machine Learning Lab
Santa Cruz, CA 95064    http://www.soe.ucsc.edu/~eads


More information about the Numpy-discussion mailing list