Switching pairwisecosine to use ensemble metric.