Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (a) CORE-TEMP STABLE- TEMP GENDER DECISION JID 1 2 3 4 5 6 high low high high low low TRUE male Igen TRUE female

image text in transcribed

2. (a) CORE-TEMP STABLE- TEMP GENDER DECISION JID 1 2 3 4 5 6 high low high high low low TRUE male Igen TRUE female gen FALSE female licu FALSE male FALSE female icu TRUE male icu licu The training dataset above contains data about whether post-operative patients were sent to an intensive care unit (icu) or a general ward (gen) for recovery. You are required to develop a 1R model that can be used to predict the target DECISION for future patients. When answering each part below, you should provide detailed comments explaining your calculations. i. Calculate the entropy of the dataset with respect to the target variable DECISION. [2] ii. Calculate the information gain when the dataset is partitioned using the CORE- TEMP feature. [4] iii. Calculate the information gain when the dataset is partitioned using the STABLE-TEMP feature. [4] iv. Calculate the information gain when the dataset is partitioned using the GENDER feature. [4] v. Based on your answers to parts ii, iii and iv above, draw a diagram showing the completed IR model. [2] vi. In your opinion, would a decision tree be more appropriate than a 1R model for this dataset? [2] 2. (a) CORE-TEMP STABLE- TEMP GENDER DECISION JID 1 2 3 4 5 6 high low high high low low TRUE male Igen TRUE female gen FALSE female licu FALSE male FALSE female icu TRUE male icu licu The training dataset above contains data about whether post-operative patients were sent to an intensive care unit (icu) or a general ward (gen) for recovery. You are required to develop a 1R model that can be used to predict the target DECISION for future patients. When answering each part below, you should provide detailed comments explaining your calculations. i. Calculate the entropy of the dataset with respect to the target variable DECISION. [2] ii. Calculate the information gain when the dataset is partitioned using the CORE- TEMP feature. [4] iii. Calculate the information gain when the dataset is partitioned using the STABLE-TEMP feature. [4] iv. Calculate the information gain when the dataset is partitioned using the GENDER feature. [4] v. Based on your answers to parts ii, iii and iv above, draw a diagram showing the completed IR model. [2] vi. In your opinion, would a decision tree be more appropriate than a 1R model for this dataset? [2]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

LO5 Highlight five external recruiting sources.

Answered: 1 week ago