Question: (a) For the training data given in the table below: (i) Plot the training data given in the table below. How many training examples are
(a) For the training data given in the table below: (i) Plot the training data given in the table below. How many training examples are there? How many features are there? (2) (ii) Use the KNN classifier (with all the data in the table) to classify the test patterns: Atest ={X1=1X2=2}, Btest ={X1=2X2=1} with K=3. Did the KNN give good classification? Explain. (4) (b) A Labeled Training data set has 200 examples from class-A and 120 from class-B. Trying splitting based on feature-1, the resulting nodes are node I={180A,20B} and node 2={20A,100B}. Calculate the Gini index in each node, then the Gini index of the split. (4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
