Quiz Space

Deep Learning Quiz 1: 7 July 2024 (May 2024 term)

Question 1

+3 marksNumerical answer

Consider a dataset of 100 points x1,x2,⋯ ,x100\mathbf{x_1}, \mathbf{x_2}, \cdots, \mathbf{x_{100}}.

First 50 points are x1=x2=⋯=x50=[aa]\mathbf{x_1} = \mathbf{x_2} = \cdots = \mathbf{x_{50}} = \begin{bmatrix} a \\ a \end{bmatrix} and next 50 points are x51=x52=⋯=x100=[−a−a]\mathbf{x_{51}} = \mathbf{x_{52}} = \cdots = \mathbf{x_{100}} = \begin{bmatrix} -a \\ -a \end{bmatrix}, where a>0a > 0. The first 50 data points belong to the positive class (denoted as 1) and the next 50 data points belong to the negative class (denoted by 0). Suppose that the perceptron learning algorithm is used to find the decision boundary that separates these data points with the following rule,

f(x)={1if wTx≥00if wTx<0f(\mathbf{x}) = \begin{cases} 1 & \text{if } \mathbf{w^T x} \ge 0 \\ 0 & \text{if } \mathbf{w^T x} < 0 \end{cases}

The algorithm checks the data points in order. How often do the weights get updated until convergence? The weights do not include bias. If the algorithm does not converge, enter the answer as −1-1

Question 2

+3 marksNumerical answer

Consider a single McCulloch-Pitts (MP) neuron with four binary inputs x1x_1, x2x_2, x3x_3, and x4x_4. The neuron produces an output yy based on a threshold function. The MP neuron uses the following decision rule

y^={1,if x1+x2+x3+x4>θ0,otherwise\hat{y} = \begin{cases} 1, & \text{if } x_1 + x_2 + x_3 + x_4 > \theta \\ 0, & \text{otherwise} \end{cases}

Given the following input combinations and their corresponding outputs:

Inputs: x1=1,x2=0,x3=1,x4=1x_1 = 1, x_2 = 0, x_3 = 1, x_4 = 1 Output: y=1y = 1
Inputs: x1=0,x2=1,x3=1,x4=0x_1 = 0, x_2 = 1, x_3 = 1, x_4 = 0 Output: y=0y = 0
Inputs: x1=1,x2=1,x3=0,x4=1x_1 = 1, x_2 = 1, x_3 = 0, x_4 = 1 Output: y=1y = 1

What minimum threshold value is required for the neuron to produce an output of 1? If the threshold can not be determined using the given information, enter the answer as −1-1.

Question 3

+3 marksNumerical answer

Consider a feedforward neural network with one hidden layer trained using backpropagation for a binary classification task with classes labeled as 1 and 0. The network architecture is structured as follows:

  • Input layer consisting of 5 neurons
  • Hidden layer containing 3 neurons
  • Output layer comprising 1 neuron

During the backpropagation process, the derivative of the sigmoid activation function σ(z)\sigma(z) with respect to its argument zz is given by:

σ′(z)=σ(z)⋅(1−σ(z))\sigma'(z) = \sigma(z) \cdot (1 - \sigma(z))

If the loss function utilized for binary classification is the binary cross-entropy loss, and both the hidden layer and output layer use the sigmoid activation function, the cross-entropy loss is represented by:

L(y,y^)=−ylog⁡2(y^)−(1−y)log⁡2(1−y^)L(y, \hat{y}) = -y\log_2(\hat{y}) - (1 - y)\log_2(1 - \hat{y})

Here, y^=P(y=1∣x)\hat{y} = P(y = 1|\mathbf{x}).

Given that the true label yy for a data point x\mathbf{x} is 1 and the predicted value y^\hat{y} is 0.9, and the activation at the hidden layer is represented by h1=[121]h_1 = \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}, what is the value of ∂L∂W200\frac{\partial L}{\partial W_{200}}? Here, W200W_{200} denotes the weight connecting the first neuron of the hidden layer to the output layer neuron.

13 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Deep Learning Quiz 1 7 Jul 2024 paper

The IIT Madras BS Deep Learning (Deep Learning) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term: 16 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureDeep Learning Quiz 1 7 Jul 2024 at a glance
TermMay 2024 term
SubjectDeep Learning
Course codeBSCS3004
Questions16
Marks50
Duration120 min
Numerical6
MCQ9
MSQ1
Official paperIIT M DEGREE AN EXAM QDB2 7 July 2024
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More Deep Learning