Problem Set 6
This is to be completed by November 30th, 2017.
Exercises
- Datacamp
- Complete the lesson:
a. Text Mining: Bag of Words
- Complete the lesson:
- Exercises from Elements of Statistical Learning
- Complete exercises:
a. 4.2
b. 4.6
- Complete exercises:
- Run the perceptron learning algorithm by hand for the two class classification problem with $(X,Y)$-pairs (given by bitwise or): $((0,0), 0), ((1,0),1), ((0,1),1)), ((1,1),1)$.
-
R Lab:
- Update the LDA Classifier from last week as follows.
a. After fitting an LDA Classifier, produce a function which projects an input sample onto the hyperplane containing the class centroids.
b. Update the classifier to use these projections for classification. Compare the runtimes of prediction of the two methods when the number of features is large relative to the number of classes. - Construct a perceptron classifier for two class classification. Put an upper bound on the number of steps.
a. Evaluate the perceptron on the above problem and for the bitwise xor problem: $((0,0), 0), ((1,0),1), ((0,1),1)), ((1,1),0)$.
- Update the LDA Classifier from last week as follows.