Docsity

COSC 6368 Assignment 2: Decision Trees and Neural Networks - Prof. Christoph Eick, Assignments of Computer Science

Toggle sidebar
bg1
COSC 6368 (Spring 2006)
Assignment 2: Learning from Examples
Due: Th., March 23 in class
Last updated: Tu., Feb. 14, 2p
Weight: 16
7) Decision Tree Induction w=2
We would like to predict the gender of a person based on two binary attributes: leg-cover
(pants or skirts) and beard (beard or bare-faced). We assume we have a data set of 20000
individuals, 10000 of which are male and 10000 of which are female. 75% of the 10000
males are barefaced. Skirts are present on 40% of the females. All females are bare-faced
and no male wears a skirt.
i) Compute the information gain of using the attribute leg-cover for
predicting gender!
ii) What is the information gain of using the attribute beard to predict gender?
iii) Based on yours answers to i) and ii) which attribute should be used as the
root of a decision tree?
8) Using C5.0 --- Knowledge Discovery for the NBA w=7
The goal of this project is to explore how decision tree tools can help in predicting the
free throw goal percentage (FT%) of a basketball player using the following NBA-Player
Data Set and the popular decision tree tool C5.0. The goal of the project is to predict a
player’s free throw percentages based on other attributes of the player. Free throw
percentage is defined as an attribute that takes values HIGH and LOW.
Tasks to be solved and questions to be answered: Convert the NBA-data set into proper
test-set training set pairs. When evaluating the training performance for the data set use
3-fold cross validation (take the NBA-dataset and create a benchmark by partitioning it 3
times into a training set of approx 120 players, and a test set of 60 players. To speed up
the project, you can use the base datasets that were generated by the group Silver in the
year 2000 that can be found following the following link:
http://www2.cs.uh.edu/~wxstrong/AI/2000fall.html
Run C5.0 with three different levels of pruning1 and collect and interpret the results.
Report the best decision tree or trees you found together with the parameter settings that
were used to generate these trees. Analyze the decision trees that have a high accuracy in
predicting good free throw shooters --- what does it tell us about the classification
problem we were trying to solve; e.g. did the decision tree approach work well/work
badly for the problem at hand; did we find anything interesting that distinguishes
successful shooters from unsuccessful shooters in the NBA)? Moreover, explore if the
different decision trees you obtained were similar of different. Finally, 2-page (single
spaced) report that summarizes your results.
9) Neural Networks w=7
1 Focus your analysis just on 2 of the C5.0 parameters: pruning CF-factor and minimum number of cases.
pf2

Partial preview of the text

Download COSC 6368 Assignment 2: Decision Trees and Neural Networks - Prof. Christoph Eick and more Assignments Computer Science in PDF only on Docsity!

COSC 6368 (Spring 2006)

Assignment 2: Learning from Examples

Due: Th., March 23 in class Last updated: Tu., Feb. 14, 2p Weight: 16

7) Decision Tree Induction w=

We would like to predict the gender of a person based on two binary attributes: leg-cover (pants or skirts) and beard (beard or bare-faced). We assume we have a data set of 20000 individuals, 10000 of which are male and 10000 of which are female. 75% of the 10000 males are barefaced. Skirts are present on 40% of the females. All females are bare-faced and no male wears a skirt. i) Compute the information gain of using the attribute leg-cover for predicting gender! ii) What is the information gain of using the attribute beard to predict gender? iii) Based on yours answers to i) and ii) which attribute should be used as the root of a decision tree?

8) Using C5.0 --- Knowledge Discovery for the NBA w=

The goal of this project is to explore how decision tree tools can help in predicting the free throw goal percentage (FT%) of a basketball player using the following NBA-Player Data Set and the popular decision tree tool C5.0. The goal of the project is to predict a player’s free throw percentages based on other attributes of the player. Free throw percentage is defined as an attribute that takes values HIGH and LOW. Tasks to be solved and questions to be answered: Convert the NBA-data set into proper test-set training set pairs. When evaluating the training performance for the data set use 3-fold cross validation (take the NBA-dataset and create a benchmark by partitioning it 3 times into a training set of approx 120 players, and a test set of 60 players. To speed up the project, you can use the base datasets that were generated by the group Silver in the year 2000 that can be found following the following link: http://www2.cs.uh.edu/~wxstrong/AI/2000fall.html Run C5.0 with three different levels of pruning^1 and collect and interpret the results. Report the best decision tree or trees you found together with the parameter settings that were used to generate these trees. Analyze the decision trees that have a high accuracy in predicting good free throw shooters --- what does it tell us about the classification problem we were trying to solve; e.g. did the decision tree approach work well/work badly for the problem at hand; did we find anything interesting that distinguishes successful shooters from unsuccessful shooters in the NBA)? Moreover, explore if the different decision trees you obtained were similar of different. Finally, 2-page (single spaced) report that summarizes your results.

9) Neural Networks w=

(^1) Focus your analysis just on 2 of the C5.0 parameters: pruning CF-factor and minimum number of cases.

a) Backpropagation Assume a neural network with the architecture specified below that uses the sigmoid activation function is given; assume that the backpropagation algorithm is used and the current weights of the neural network are: w13=w12=1 w24=w34=0.5 and the learning rate is 0.5. How would the neural network algorithm update the weights w12 and w24 for the training example (I1=1, a4=0.5; that is for the input 1 the “correct” output is 0.5)? [9] b) Perceptron Learning Consider the following function f(x,y)=If xy>0.5 then 1 else 0. Consider we apply the perceptron learning algorithm using the following training set: X1 X2 Out 0.9 0.3 1 1 0.8 0 0.7 0.1 1 0.5 0.05 0 Show the change in the weights of the perceptron for every presentation of a training instance. Assume the initial weights are: w1=0.2, w2=0.3. Important: Do the iterations according to the order of the samples in the training set. When you finish the four samples go over them again. You should stop the iterations once you get convergence, or when the values you get indicate that there will be no convergence. Analyze if the learnt weights classify all training examples correctly, and to which extend they ‘learnt preceptron” computes the “correct function”. In either case explain your decision to stop the iterations. Assume in your computations that the learning rate  is 0.2. Hint: It is okay to write a program to perform the necessary computations

I

a

a

a

w w w w