Re: [Scikit-learn-general] decision_function for NearestCentroid classifier

2012-03-28 Thread Andreas
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 > >

[Scikit-learn-general] decision_function for NearestCentroid classifier

2012-03-28 Thread Lars Buitinck
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