Mid Exam Midterm Exam of Applied Machine Learning
Mid Exam Midterm Exam of Applied Machine Learning
CPE 695 A/WS: Applied Machine Learning Midterm Exam Spring 2021
2) What are the pros and cons of batch gradient descent and stochastic gradient descent
respectively?
3) What is learning rate? Explain why learning rate cannot be too large or too small.
4) What is the sigmoid function? Please sketch its shape. Explain why initial parameters shall be
small when training artificial neural networks with sigmoid function?
CPE 695 A/WS: Applied Machine Learning Midterm Exam Spring 2021
Class 1 Class 2
Class 1 70 10
Class 2 30 70
CPE 695 A/WS: Applied Machine Learning Midterm Exam Spring 2021
1) draw a decision tree for the training examples (using information gain to select attributes).
Please include detailed steps in your solution.
2) Can the tree in 1) be further pruned without reducing its accuracy? If yes, please draw the
pruned tree. If no, explain why.
CPE 695 A/WS: Applied Machine Learning Midterm Exam Spring 2021
Question 4 (15 points): Design a two-input perceptron that implements the Boolean function
¬𝐴 ∧ 𝐵.
[Hint: Lecture 7 pages 12-13 give examples for AND (∧) and OR (∨) gates; You use similar
method here, i.e., first draw the truth table, then list equations and solve them.]
CPE 695 A/WS: Applied Machine Learning Midterm Exam Spring 2021
In ensemble learning, there are several popular fusion methods for Class Label type classifiers,
e.g., majority vote, weighted majority vote, and naïve Bayes methods. Assuming we have 3
classifiers, and their results are given in the table 1. The confusion matrix of each classifier is given
in table 2. Please give the final decision using the each of following fusion methods:
1) Majority vote
2) Weighted majority vote, assuming the weights are
Classifier 1: 0.3
Classifier 2: 0.4
Classifier 3: 0.3
3) Naïve Bayes method
Classifier 1 Class 1
Classifier 2 Class 2
Classifier 3 Class 1