Re: [问题] How to decide the multi-class?

楼主: hyperstring (try and win)   2005-09-26 18:52:03
※ 引述《mengjia (...新人)》之铭言:
: ※ 引述《hyperstring (try and win)》之铭言:
: : What I mean is in "multi-class" case.
: : If a instance is : 3,5,7,11,25,35 1:10, 2:30....
: : So it finally belongs to "only one" class?
: : Case 1, ie. this instance just belongs to class 3.
: : Case 2, or this instance belongs to some of those classes,like 3, 11, 25
: : Is the homework one dealing with the case 1 or case 2?
: : I am confusing now.
: : Thinks for answering.
: I think that 3,5,7,11,25,35 is a class ,and
^^^^^^^^^^^^^^^^
This instance is belonging to these classes
: 1:10, 2:30.... is a news content .
^^^^^^^^^^^^^^^^
They are [index]:[feature's value]
: Right?
: I am not sure.
But my question is in multi-class K-NN, if we want to calculate the distance.
Then to vote every instance, in a simple K-NN question, we just decide every
instance belong which one class.(Ex: data1 is class 3, data2 is
class 2).
However, I want to know in multi-class K-NN problem, if the training data
class is 2,3,6,9,25,36. What is the definition of its algorithm?
Should we calculate the nearest one class, and put this data into this class?
(Ex. Data 1 belongs to class 25).
Or we calculate the nearest K classes, and put this data into those classes?
(Ex. Data 1 belongs to 3, 9, 25, these 3 classes).

Links booklink

Contact Us: admin [ a t ] ucptt.com