SWE485 - Assignment 2 - 45-2
SWE485 - Assignment 2 - 45-2
Question #1:
The following table shows a game which is played or not depending on the weather conditions (Actual).
There are three attributes: outlook (sunny / overcast / rainy), humidity (high / normal) and windy (true /
false). Also, it shows a predictive model results for these attributes (Predicted).
1- Build a decision tree for the dataset above (the output is “Actual” column), using Entropy
evaluation and Information Gain for branching decisions. Show your calculations.
2- Considering “Predicted” and “Actual” columns in the table above, construct a confusion matrix,
and measure the accuracy, precision and recall of these classifications.
Question #2: