use cosine distance metric for NearestCentroid classifier