ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M DIPLOMA FN1 EXAM ETD1 11 Dec 2022 - 11 Dec 2022

MLT End Term30 questions100 marks15 SA · 12 MCQ · 3 MSQDiploma
Elapsed 00:00
Q1MSQ2 marksselect all that apply
Which of the following estimators are more likely to be preferred for bagging? Select all that apply.
  1. A decision stump
  2. A fully grown decision tree with randomly selected features for splitting thenodes.
  3. k-NN classifier with a smaller value of k.
  4. k-NN classifier with a larger value of k.
Q2MCQ3 marks
What will be the result of applying ReLU to the following values?: -3.7, 4.9, -2.0, 5.2, 7.4, -8.3
  1. 1, 4.9, 1, 5.2, 7.4, 1
  2. 0, 1, 0, 1, 1, 0
  3. 0, 4.9, 0, 5.2, 7.4, 0
  4. -1, +1, -1, +1, +1, -1
  5. -3.7, 0, -2.0, 0, 0, -8.3
Q3MCQ3 marks
Suppose you run gradient descent for linear regression for 100 iterations with a learning rate 0.01. You observe that the training loss (sum of squared loss) is increasing after every iteration. What may be the reason? What changes would you make to the set-up for the gradient descent to converge to a solution?
  1. Learning rate may be too low; Try increasing it.
  2. Learning rate may be too high; Try reducing it.
  3. Number of features in the training data may be too low, try increasing them.
  4. Number of features in the training data may be too high, try reducing them.
Q4MCQ4 marks
question figure
  1. Only dataset-1
  2. Only dataset-2
  3. On both dataset-1 and dataset-2
  4. Neither dataset-1 nor dataset-2
Q5MCQ4 marks
question figure
  1. YES
  2. NO
Q6MCQ4 marks
Using a fixed number of training examples, Model 1 will have _____________ bias than Model 2, and Model 2 is more likely to _______________ question figure
  1. Lower, underfit
  2. Lower, overfit
  3. Higher, overfit
  4. Higher, underfit
Q7SA4 marks
Consider a neural network with 10 inputs and 2 outputs. If there are 5 hidden layers each with 5 neurons, how many parameters need to be learnt if there is a bias associated with each neuron in the hidden and output layers?
Q8SA5 marks
question figure
Q9SA5 marks
What is the maximum number of mistakes that the Perceptron algorithm can make in this data set? question figure
Q10MCQ5 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q11MCQ5 marks
Consider the following data set: question figure Consider the following data set: Which of the following will have larger leave-one-out cross-validation error?
  1. 1-Nearest Neighbor
  2. 3-Nearest Neighbor
Q12MSQ5 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q13MCQ2.5 marks
Which of the two models is more likely to fit the training data better?
  1. Model 1
  2. Model 2
  3. Both will fit equally well
  4. Can not say
Q14MCQ2.5 marks
Which model is more likely to give less test error?
  1. Model 1
  2. Model 2
  3. It will depend upon the underlying distribution that generates the dataset andtherefore, can not say.
  4. Both will give the equal error
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q15SA3 marks
What is the variance along the first principal component?
Q16MCQ3 marks
question figure
  1. Each pair of features has a strong positive correlation. For instance is, if x1increases, then x2 also increases.
  2. Each pair of features has a strong negative correlation. For instance is, if x1increases, then x2 decreases.
  3. Each pair of features is uncorrelated. For instance is, if x1 increases, we can saynothing about the trend of x2.
  4. Unless we know the exact values of the off-diagonal elements a, b and c , wecan't comment about the correlation among features.
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q17SA3 marks
question figure
Q18MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q19SA3 marks
How many mistakes does your algorithm make?
Q20SA3 marks
What is the squared length of the weight vector corresponding to the final linear separator your algorithm outputs?
Q21MCQ6 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q22SA1.5 marks
What is the value of a?
Q23SA1.5 marks
What is the value of b?
Q24SA1.5 marks
What is the value of c?
Q25SA2.5 marks
What is the value of the following expression? (p+r) (1+q+s)
Comprehension passage - the questions below it refer to this
Consider a single iteration of the AdaBoost algorithm that was run on three sample points, starting with uniform weights on the sample points. The labels are either +1 or −1. In the table below, some values have been omitted. question figure Consider a single iteration of the AdaBoost algorithm that was run on three sample points, starting with uniform weights on the sample points. The labels are either +1 or −1. In the table below, some values have been omitted. Based on the above data, answer the given subquestions.
Q26SA2 marks
question figure
Q27SA2 marks
question figure
Q28SA3 marks
How much training error will be incurred by the first estimator? The training examples consist of given three points. Enter your answer correct to two decimal places.
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q29SA4 marks
question figure
Q30MSQ4 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure

Answer key

  1. Q1 (MSQ, 2 marks): B, C
  2. Q2 (MCQ, 3 marks): C
  3. Q3 (MCQ, 3 marks): B
  4. Q4 (MCQ, 4 marks): C
  5. Q5 (MCQ, 4 marks): A
  6. Q6 (MCQ, 4 marks): C
  7. Q7 (SA, 4 marks): 187
  8. Q8 (SA, 5 marks): 35
  9. Q9 (SA, 5 marks): 25
  10. Q10 (MCQ, 5 marks): A
  11. Q11 (MCQ, 5 marks): A
  12. Q12 (MSQ, 5 marks): B, D
  13. Q13 (MCQ, 2.5 marks): B
  14. Q14 (MCQ, 2.5 marks): C
  15. Q15 (SA, 3 marks): 15
  16. Q16 (MCQ, 3 marks): C
  17. Q17 (SA, 3 marks): 1
  18. Q18 (MCQ, 3 marks): C
  19. Q19 (SA, 3 marks): 2
  20. Q20 (SA, 3 marks): 4
  21. Q21 (MCQ, 6 marks): C
  22. Q22 (SA, 1.5 marks): 3
  23. Q23 (SA, 1.5 marks): 1
  24. Q24 (SA, 1.5 marks): 4
  25. Q25 (SA, 2.5 marks): 2
  26. Q26 (SA, 2 marks): 0.23 to 0.27
  27. Q27 (SA, 2 marks): 1
  28. Q28 (SA, 3 marks): 0.31 to 0.35
  29. Q29 (SA, 4 marks): 5
  30. Q30 (MSQ, 4 marks): B, C

Concepts this paper tests

Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.

Here’s a structured summary of the core topics, concepts, principles, and equations essential for the "Diploma Level: Machine Learning Techniques" exam, followed by Mermaid knowledge graphs to visualize relationships.



Core Topics & Concepts

1. Supervised Learning


2. Unsupervised Learning


3. Ensemble Methods


4. Mathematical Foundations


5. Evaluation & Cross-Validation



Key Equations Summary

TopicEquation
Linear RegressionJ(θ)=12m∑(hθ(x(i))−y(i))2J(\theta) = \frac{1}{2m} \sum (h_\theta(x^{(i)}) - y^{(i)})^2
Logistic RegressionJ(θ)=−1m∑[ylog⁡(hθ)+(1−y)log⁡(1−hθ)]J(\theta) = -\frac{1}{m} \sum [y \log(h_\theta) + (1-y) \log(1-h_\theta)]
SVM (Primal)min⁡12∥w∥2+C∑ξi\min \frac{1}{2} \|\mathbf{w}\|^2 + C \sum \xi_i s.t. yi(wTxi+b)≥1−ξiy_i (\mathbf{w}^T \mathbf{x}_i + b) \geq 1 - \xi_i
SVM (Dual)max⁡α∑αi−12∑αiαjyiyjK(xi,xj)\max_\alpha \sum \alpha_i - \frac{1}{2} \sum \alpha_i \alpha_j y_i y_j K(\mathbf{x}_i, \mathbf{x}_j) s.t. 0≤αi≤C0 \leq \alpha_i \leq C
Perceptron Updatew:=w+ηyixi\mathbf{w} := \mathbf{w} + \eta y_i \mathbf{x}_i (if misclassified)
PCA VarianceVariance along PC1 = largest eigenvalue (λ1\lambda_1) of covariance matrix C\mathbf{C}
AdaBoost Weight Updatewi:=wi⋅e−αtyiht(xi)w_i := w_i \cdot e^{-\alpha_t y_i h_t(\mathbf{x}_i)}
MLE for Uniforma^MLE=max⁡(xi)\hat{a}_{\text{MLE}} = \max(x_i)
ReLU ActivationReLU(z)=max⁡(0,z)\text{ReLU}(z) = \max(0, z)


2. Unsupervised Learning & Ensemble Methods

3. Bias-Variance Tradeoff

4. SVM Components

5. Optimization & Evaluation



Exam-Specific Tips

  1. SVM (Q5, Q6, Q11, Q13, Q30–Q31):

    • Hard-margin SVM requires linearly separable data (Q5: Both datasets are separable with a quadratic kernel).
    • Kernel validity: x1x2k(x1,x2)x_1 x_2 k(x_1, x_2) is valid if kk is a kernel (Q6: YES, because product of kernels is a kernel).
    • Support vectors: Points with αi>0\alpha_i > 0 or ξi>0\xi_i > 0 (Q13: Options B, D).
  1. Decision Trees (Q2, Q23–Q26):

    • Bagging prefers high-variance models (Q2: B, C).
    • Interpret tree splits to find a,b,ca, b, c (Q23: a=3a = 3, Q24: b=1b = 1, Q25: c=4c = 4).
  1. Neural Networks (Q3, Q8):

    • ReLU outputs 00 for negative inputs (Q3: C).
    • Parameter count: (10×5)+(5×5)×4+(5×2)=187(10 \times 5) + (5 \times 5) \times 4 + (5 \times 2) = 187 (Q8).
  1. Perceptron (Q10, Q20–Q21):

    • Mistake bound depends on margin γ\gamma (Q10: 25 mistakes).
    • Track weight updates in order {x4,x3,x2,x1}\{x_4, x_3, x_2, x_1\} (Q20: 2 mistakes; Q21: ∥w∥2=4\|\mathbf{w}\|^2 = 4).
  1. AdaBoost (Q27–Q29):

    • Weight updates: Misclassified points get higher weights (Q27: w1≈0.25w_1 \approx 0.25).
    • True label for x2x_2: Must be +1+1 to explain weight increase (Q28: +1+1).
    • Training error: 1/2+1/41/2+1/4+1/4≈0.33\frac{1/2 + 1/4}{1/2 + 1/4 + 1/4} \approx 0.33 (Q29).
  1. PCA (Q16–Q17):

    • Variance along PC1 = first diagonal entry of C\mathbf{C} (Q16: 15).
    • Uncorrelated features → off-diagonal entries a,b,c=0a, b, c = 0 (Q17: C).
  1. Naive Bayes (Q18–Q19):

    • P(x1=0)=0P(x_1 = 0) = 0 → P(y∣x)=0P(y|x) = 0 (Q19: C).
  1. Clustering (Q22):

    • Lloyd’s algorithm: Reassign points to nearest centroid (Q22: C).