Docsity

Homework 3 for Machine Learning | CAP 6610, Assignments of Computer Science

Toggle sidebar
bg1
Home Work 3: CAP 6610 Spring โ€™07
Due Date: Apr 3rd 2007
Show all steps. Be as concise as possible.
1. Code and test a two layer feed-forward net of sigmoidal nodes with two input units, ten
hidden units and one output unit that learns the concept of a circle in 2D space. The concept
is: hx, yiis labeled โ€œ+โ€ if (xโˆ’a)2+ (yโˆ’b2)< r2and is labeled โ€œ-โ€ otherwise.
Draw all data from the unit square [0,1]2. Set a= 0.5,b= 0.6,r= 0.4.
Generate 100 random samples uniformly distributed on [0,1]2to train the network using
error back-propagation and 100 random samples to test it. Repeat the procedure multiple
epochs and with multiple initial weights. Report the changing accuracy and the hyperplanes
corresponding to the hidden nodes (when the sigmoid is turned into a step function).
2. Problem 33. from chapter 5 (page 276) of the book. You are asked to use the KKT conditions
to formulate the dual of the constrained optimization problem for SVMs.
3. Retrieve the Iris Plant database from the UCI Machine learning Repository. Program a de-
cision tree that uses the entropy impurity to split nodes and relies on a Chi-squared test as a
stopping criteria to stop splitting nodes. Report the resultant tree for the Iris database.
1

Partial preview of the text

Download Homework 3 for Machine Learning | CAP 6610 and more Assignments Computer Science in PDF only on Docsity!

Home Work 3: CAP 6610 Spring โ€™

Due Date: Apr 3rd 2007

Show all steps. Be as concise as possible.

  1. Code and test a two layer feed-forward net of sigmoidal nodes with two input units, ten hidden units and one output unit that learns the concept of a circle in 2D space. The concept is: ใ€ˆx, yใ€‰ is labeled โ€œ+โ€ if (x โˆ’ a)^2 + (y โˆ’ b^2 ) < r^2 and is labeled โ€œ-โ€ otherwise. Draw all data from the unit square [0, 1]^2. Set a = 0. 5 , b = 0. 6 , r = 0. 4. Generate 100 random samples uniformly distributed on [0, 1]^2 to train the network using error back-propagation and 100 random samples to test it. Repeat the procedure multiple epochs and with multiple initial weights. Report the changing accuracy and the hyperplanes corresponding to the hidden nodes (when the sigmoid is turned into a step function).
  2. Problem 33. from chapter 5 (page 276) of the book. You are asked to use the KKT conditions to formulate the dual of the constrained optimization problem for SVMs.
  3. Retrieve the Iris Plant database from the UCI Machine learning Repository. Program a de- cision tree that uses the entropy impurity to split nodes and relies on a Chi-squared test as a stopping criteria to stop splitting nodes. Report the resultant tree for the Iris database.