concept canopy clustering in category algorithms

appears as: Copy Clustering, copy clustering
Algorithms and Data Structures in Action

This is an excerpt from Manning's book Algorithms and Data Structures in Action.

  • Preprocessing: find clusters in the data and process each cluster separately (and possibly in parallel); this obviously provides a speedup but it also has another side-effect: since it reduces the max amount of space needed at any single time, when a huge dataset is broken up into smaller pieces, each piece can fit in memory or be processed on a single machine, while the whole dataset couldn’t. Sometimes you can even use a fast clustering algorithm (for instance canopy clustering) as a preprocessor step for a slower clustering algorithm.
  • Figure 13.6 Comparing “classical” approach to parallel computing to MapReduce. We assume that in both cases data is already broken down into chunks and can be passed “by location”, i.e. providing something like a file handle, without the need for the orchestrator to read the data.
    In the basic parallel approach, using processes (either running on threads or on different machines) the orchestrator need to spin the threads and make sense of their results; it can either combine these results itself, or spawn more processes to combine them (as shown in figure) but it will be the bottleneck either way.

    This is also summarized[11] in listing 13.2 and shown with an example in figure 13.7.

    The first thing you should know is that we are not talking about plain good old MapReduce in this case. The base model of computation is MapReduce, but since the k-means heuristic consists of repeating some steps m times, we will need to start the computation several times; this is illustrated by the workflow in figure 13.7: the output of each MapReduce job, a list of centroids, is also the input of the next job, and moreover sharding the dataset and distributing it to the mappers is a step that doesn’t need to be repeated for each job, because there is no reason why the shard assigned to a mapper should change.