Ask Your Question
2

k-nearest neighbor classifier

asked 2014-02-12 22:22:01 -0600

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-02-14 17:34:45 -0600

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-02-12 22:22:01 -0600

Seen: 1,066 times

Last updated: Feb 14 '14