[SOLVED] COMP20008 202 SM Workshop Week 9

25.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

1. Consider the following data set for a binary class problem and consider building a decision tree using this data
Feature A Feature B Class Label
T F +
T T +
T T +
T F –
T T +
F F –
F F –
F F –
T T –
T F –
• Write a formula for the information gain when splitting on feature A. • Write a formula for the information gain when splitting on feature B.
• Which feature would the decision tree induction algorithm choose?
2. Load the 2021SM2-Week9 _lab.ipynb jupyter notebook and complete thepractical exercises
1

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.