Ask Your Question
2

k-nearest neighbor classifier

asked Feb 13 '14

Agustin Haller gravatar image

Hi,

What does it mean a k-nearest neighbor classifier? I mean, using Fisherfaces, if i predict a model using a 3-nearest neighbor classifier i would get something like this:

{

'labels' : [ 0, 0, 1 ],

'distances' : [ 10.132, 10.341, 13.314 ]

}

Does this mean that for the first region or component of the Fisherfaces the predicted label is 0 and the distance 10.132? For the seccond region or component of the Fisherfaces the predicted label is 0 and the distance 10.341?

Am i correct? or i'm interpreting the results wrong?

Any help is appreciated, thank you!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Feb 14 '14

Yes, you are correct, and with this result, the true label is 0 since the two smallest (2 vs. 1 with k=3) distances predicted that.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Feb 13 '14

Seen: 1,095 times

Last updated: Feb 14 '14