 So, the training consists of identifying the homogeneous clusters via an unsupervised clustering approach and associating an algorithm with each cluster.A new instance is assigned to a cluster and the associated algorithm selected.A more modern approach is cost-sensitive hierarchical clustering using supervised learning to identify the homogeneous instance subsets.