Final exam answers (1)
Final exam answers (1)
✓ Gini index of weather, it has values of: 3 sunny, 4 windy and 3 rainy
Page | 1
Machine Learning Final Exam Answers
For weather, sunny: 1 cinema and 2 tennis, then
1 2
Gin(sunny)=1- [( )2 + ( )2]= 0.444
3 3
Page | 2
Machine Learning Final Exam Answers
3 7
Gin(money)= 0* +0.306* =0.2142
10 10
start
yes no
2. Cluster the following eight points (with (x, y) representing locations) into three
clusters :
A1(3, 10) A2(6, 5) A3(9, 4) A4(7, 8) , A5(10, 6) A6(2,
4) A7(2,2), A8(4, 9).
Assume that initial cluster centers are:
A1(3, 10), A4(7,8) and A7(2, 2).
Page | 4
Machine Learning Final Exam Answers
➢ The clustering step is stopped, because the new centroid and the previous
centroid are the same.
Page | 5