\begin{figure}
\begin{alltt}
function Cluster(data)
  model = Clusterer(data)
  
  for each instance in data
    cluster = model.search(instance)
    cluster.assign(instance)
    
  for each cluster in model
    classifier = TrainClassifier(cluster.assignedTrainingData)
    results += classifier.test(cluster.assignedTestingData)

  return results
\end{alltt}
\caption{Pseudo code of Merging a Classifier and a Clusterer}\label{fig:clusterer+classifier}
\end{figure}
