2023 - Midterm 2 Solution - Spring - AI
2023 - Midterm 2 Solution - Spring - AI
α=34
β = +∞ 4
α = -∞ α=3
β=3 3 4
β=5
α=35
5 α = 37
β = +∞ 7
β=5 α>β
α=3
0
β=0
α>β
---------------------------------------------------------------------------------------------------------------------------------------------
Fast School of Computing 1 of 5
QUESTION 2: Suppose there are 10 chromosomes with finesses as shown in table. What will be the selection
probability according to the proportionate and linear rank selection methods? (5 + 10)
QUESTION 3: A Multi-layer feed-forward neural network with initialization of weights is given below.
---------------------------------------------------------------------------------------------------------------------------------------------
Fast School of Computing 2 of 5
a) Do a forward pass and compute the output at O1 and O2. Use linear activation function at hidden layer h1,
and h2 and sigmoid activation function at O1 and O2. All biases are 0.5, the input values are x1 = 1, x2 =
4, x3 = 5 and target values are t1= 0.1, t2 = 0.05. Show all the working. (3+3)
b) What are the general weight update equations according to delta rule for this network? (2+2)
𝟏 𝟐
𝑬𝒓𝒓𝒐𝒓𝒋 = 𝟐 (𝒕𝒋 − 𝑶𝒋 )
learning rate= η
---------------------------------------------------------------------------------------------------------------------------------------------
Fast School of Computing 3 of 5
c) Do a backward pass (backpropagation) and compute update in weights b1, w4 and w10. Use learning rate
η=0.01. Show all the working. (5+5+5)
---------------------------------------------------------------------------------------------------------------------------------------------
Fast School of Computing 4 of 5
Rough Sheet 1
---------------------------------------------------------------------------------------------------------------------------------------------
Fast School of Computing 5 of 5