Professional Documents
Culture Documents
B) Consider you have the following dataset calculate the best splitting position for the age attribute.
ID Age Car Class
Type label
0 23 Family High
1 17 Sport High
2 43 Sport High
3 68 Family Low
4 32 Truck Low
5 20 Famiy High
Question 2:
A) Consider the three perceptrons below, which respectively correspond to classes A, B,
and C. For a given input x, the perceptron with the highest value of
∑ 𝒘𝒊 𝒙𝒊
𝒊
is the prediction of the group.
For the following test set, find the prediction of this set of perceptrons on each example,
and create a corresponding confusion matrix. Given the actual class label is indicated in the Table
below.
Example X1 X2 X3 Label
1 0 1 1 A
2 1 0 1 C
3 0 0 0 C
4 1 1 1 B
B) If vector x=(0,1,0,1) and y=(1,0,1,0) Calculate the Cosine, Correlation, Euclidean and jaccard
similarity and distance measures.