📗 Enter your ID (the wisc email ID without @wisc.edu) here: and token (announced at the beginning of the exam): and click (or hit the "Enter" key) 1,2,3,4,5,6,7,8,9,10a110
📗 Incorrect ID or token will receive a grade of 0 for the exam.
📗 You can also load from your saved file and click (token will not be loaded).
📗 If the questions are not generated correctly, try refresh the page using the button at the top left corner.
📗 The same ID should generate the same set of questions. Your answers are not saved when you close the browser. You could either copy and paste or load your program outputs into the text boxes for individual questions or print all your outputs to a single text file and load it using the button at the bottom of the page.
📗 Please do not refresh the page: your answers will not be saved.
📗 Please report any bugs in Question 10.
# Warning: please enter your ID and token before you start!
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X1 Assignment [write "see Canvas submission." in this case])
📗 [4 points] Consider a Linear Threshold Unit (LTU) perceptron with initial weights \(w\) = and bias \(b\) = trained using the Perceptron Algorithm. Given a new input \(x\) = and \(y\) = . Let the learning rate be \(\alpha\) = , compute the updated weights, \(w', b'\) = :
📗 Answer (comma separated vector): .
📗 [1 points] Move the point and change the learning rate to see the derivatives (slope of tangent line) of the function \(x^{2}\). Find an initial point + learning rate combination so that gradient descent will not find the global minimum.
Point: 0
Learning rate: 0.5
Derivative: 0
Point found after gradient descent: 0 1slider
📗 [4 points] Given the following neural network that classifies all the training instances correctly. What are the labels (0 or 1) of the training data? The activation functions are LTU for all units: \(1_{\left\{z \geq 0\right\}}\). The first layer weight matrix is , with bias vector , and the second layer weight vector is , with bias
\(x_{i1}\)
\(x_{i2}\)
\(y_{i}\) or \(a^{\left(2\right)}_{1}\)
0
0
?
0
1
?
1
0
?
1
1
?
Note: if the weights are not shown clearly, you could move the nodes around with mouse or touch.
📗 Answer (comma separated vector): .
📗 [1 points] Transform the points (using the feature map) and move the plane such that the plane separates the two classes.
Feature map scale: 0
Plane: 00 slider
📗 [4 points] "It" has a house with many doors. A random door is about to be opened with equal probability. Doors to have monsters that eat people. Doors to are safe. With sufficient bribe, Pennywise will answer your question "Will door 1 be opened?" What's the information gain (also called mutual information) between Pennywise's answer and your encounter with a monster?
📗 Answer: .
📗 [4 points] Given the following training data, which items will be classified correctly with the fold cross validation if NN (Nearest Neighbor) classifier with Manhattan distance is used. Break the tie (in distance) by using the instance with the smaller index. Check the items that are classified correctly in the table.
\(x_{i}\)
\(y_{i}\)
Correct?
If all items are classified incorrectly, check this: .
📗 [4 points] A convolutional neural network has input image of size x that is connected to a convolutional layer that uses a x filter, zero padding of the image, and a stride of 1. There are activation maps. (Here, zero-padding implies that these activation maps have the same size as the input images.) The convolutional layer is then connected to a pooling layer that uses x max pooling, a stride of (non-overlapping, no padding) of the convolutional layer. The pooling layer is then fully connected to an output layer that contains output units. There are no hidden layers between the pooling layer and the output layer. How many different weights must be learned in this whole network, not including any bias.
📗 Answer: .
📗 [4 points] Consider the problem of detecting if an email message is a spam. Say we use four random variables to model this problem: a binary class variable \(S\) indicates if the message is a spam, and three binary feature variables: \(C, F, N\) indicating whether the message contains "Cash", "Free", "Now". We use a Naive Bayes classifier with associated CPTs (Conditional Probability Table):
📗 [4 points] Compute the context value of the word with \(q_{i} = x_{i} \cdot w_{q}\) = . You can enter the scaled dot products (optional) in the table and use the "Softmax" button to compute the soft attention weights.
Words
Key \(k_{j} = x_{j} \cdot w_{k}\)
Value \(v_{j} = x_{j} \cdot w_{v}\)
Attention Weights \(\alpha\)
:
:
:
:
📗 Answer: .
📗 [1 points] Please enter any comments including possible mistakes and bugs with the questions or your answers. If you have no comments, please enter "None": do not leave it blank.
📗 Please do not modify the content in the above text field: use the "Grade" button to update.
➩ Required fields: ID and Token.
📗 You could submit multiple times (but please do not submit too often): only the latest submission will be counted.
📗 Please also save the text in the above text box to a file using the button or copy and paste it into a file yourself .
📗 You could load your answers from the text (or txt file) in the text box below using the button . The first two lines should be "##x: 1" and "##id: your id", and the format of the remaining lines should be "##1: your answer to question 1" newline "##2: your answer to question 2", etc. Please make sure that your answers are loaded correctly before submitting them.
📗 Saving and loading may take around 5 to 10 seconds. Please be patient and do not click "Load" multiple times.