On 03/28/2012 06:18 PM, Lars Buitinck wrote:
> Hi all,
>
> I just suggested [1] adding a decision_function to @robertlayton's new
> NearestCentroid classifier and tried to implement one, but I got stuck
> on the binary case. In the multiclass case, the decision function is
> simple: it would be
>
>
Hi all,
I just suggested [1] adding a decision_function to @robertlayton's new
NearestCentroid classifier and tried to implement one, but I got stuck
on the binary case. In the multiclass case, the decision function is
simple: it would be
D = -pairwise_distances(X, self.centroids_, metric=sel