Subject
Computer Science
Topic
Artificial Intelligence
Training points are (0,0) labelled A, (1,0) labelled A, (0,2) labelled B and (3,3) labelled B. Using 3-nearest neighbours with Euclidean distance, what label is given to the point (0.5, 0.2)?
Training points are (0,0) labelled A, (1,0) labelled A, (0,2) labelled B and (3,3) labelled B. Using 3-nearest neighbours with Euclidean distance, what label is given to the point (0.5, 0.2)?
a)
Bb)
A and B equallyc)
Ad)
No label can be givenExplanation
The three closest points are (0,0) and (1,0), both about 0.54 away (A), and (0,2), about 1.87 away (B). The vote is 2 to 1 for A.Related questions
A classifier has TP=40, FP=10, FN=5, TN=45. What is its accuracy rounded to two decimals?A classifier has TP=30, FP=10, FN=20, TN=40. What is its precision rounded to two decimals?A classifier has TP=36, FP=4, FN=9, TN=51. What is its recall rounded to two decimals?A classifier has TP=24, FP=6, FN=6, TN=64. What is its f1 rounded to two decimals?In the figure, a binary node contains class counts 6 and 2. What is its entropy in bits, rounded to three decimals?In the figure, a split changes parent counts 6,4 into left 4,1 and right 2,3. What is information gain rounded to three decimals?A condition has prior 0.1, test sensitivity 0.8, and false-positive rate 0.2. What is P(condition given positive), rounded to three decimals?A feature computed after the prediction time is included during training. What problem does this create?
