For L_2 centroids, you just have to have the mapper emit a trivial sum and a
count (of 1). The combiner should take a list of vector sums and counts and
produce a combined sum and count.
Then the reducer will get a sums and counts and it should add them together
and divide by the count.
(just like n-dimensional word count!)
On Thu, Jun 11, 2009 at 9:49 AM, Adil Aijaz <[EMAIL PROTECTED]> wrote:
Ted Dunning, CTO
111 West Evelyn Ave. Ste. 202
Sunnyvale, CA 94086http://www.deepdyve.com