Show full workings
In the following table, we have 5 instances with 3 attributes Suburb, Area, New, a Class Label. Each row is showing an instance. (N.B. Calculations up to two decimal points) Suburb Area New Class 1 S1 Large N 1 2 S2 Large N 1 3 S3 Large Y 1 4 S4 Large Y 2 5 S5 Medium Y 2 6 S6 Large Y 3 7 S4 Large Y 3 8 S7 Small N 3 (a) Calculate the information gain and gain ratio of "New" feature on the dataset. [7 marks] (N.B. use log2 to compute the results of each step to get full marks.)
Show full workings
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am