updated silhouette and loss functions for MADBayes