ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M FOUNDATION DIPLOMA AN EXAM - 01 Sep 2024

MLT End Term30 questions50 marks14 MCQ · 14 SA · 2 MSQFoundation / Diploma / afternoon
Elapsed 00:00
Q1MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ3 marks
question figure
  1. 1
  2. 2
  3. 3
  4. 6
Q3MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4MCQ3 marks
Match the characteristics given below with the appropriate ensemble technique. 1. Decision stumps 2. Deep decision trees 3. Parallel execution 4. Sequential execution
  1. Bagging → (2), (3); Boosting → (1), (4)
  2. Bagging → (1), (4); Boosting → (2), (3)
  3. Bagging → (1), (3); Boosting → (2), (4)
  4. Bagging → (2), (4); Boosting → (1), (3)
Q5MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q7MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q8MCQ3 marks
question figure
  1. 0.75
  2. 0.25
  3. 0.5
  4. 0.15
Q9MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q10MSQ3 marksselect all that apply
question figure
  1. The dataset is linearly separable with a positive margin.
  2. The perceptron algorithm will terminate after a finite number of iterationswhen trained on this dataset.
  3. The dataset is linearly separable, but the margin may be zero.
  4. The dataset is not linearly separable.
Q11SA3 marks
question figure
Q12SA3 marks
question figure
Q13SA3 marks
question figure
Comprehension passage - the questions below it refer to this
question figure
Q14MCQ1 mark
The weight vector output by the perceptron algorithm can be expressed as a linear combination of the data-points where the coefficients of the linear combination are integers.
  1. TRUE
  2. FALSE
Q15MCQ1 mark
question figure
  1. TRUE
  2. FALSE
Q16MCQ1 mark
If a soft-margin SVM is trained on this dataset, the optimal weight vector it returns will be the same as the one returned by a hard-margin SVM, irrespective of the value of the hyperparameter C.
  1. TRUE
  2. FALSE
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q17SA0.5 marks
question figure
Q18SA0.5 marks
question figure
Q19SA0.5 marks
question figure
Q20SA0.5 marks
question figure
Q21SA0.5 marks
question figure
Q22SA0.5 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q23SA0.5 marks
Enter the number corresponding to the logistic loss.
Q24SA0.5 marks
Enter the number corresponding to the (SVM) hinge loss.
Q25SA0.5 marks
Enter the number corresponding to the perceptron loss.
Q26SA0.5 marks
Enter the number corresponding to the squared loss.
Q27MCQ1 mark
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
Q28SA1 mark
How many learnable parameters does this network have? Ignore the biases in the computation.
Q29MCQ1 mark
What is the most appropriate choice of activation function for the output layer if the binary cross-entropy loss is used?
  1. Sigmoid
  2. Linear
  3. ReLU
Q30MCQ1 mark
question figure
  1. ReLU
  2. Sigmoid

Answer key

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

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 core topics, concepts, principles, and equations for the Diploma Level: Machine Learning Techniques exam, along with Mermaid knowledge graphs to visualize relationships.


1. Core Topics & Concepts

A. Linear Regression & Gradient Descent

SSE=∑i=1n(yi−y^i)2=∑i=1n(yi−wTxi)2\text{SSE} = \sum_{i=1}^n (y_i - \hat{y}_i)^2 = \sum_{i=1}^n (y_i - w^T x_i)^2
∇wSSE=−2(y−wTx)x\nabla_w \text{SSE} = -2 (y - w^T x) x

B. Principal Component Analysis (PCA)

C=1nXTX(for centered data)C = \frac{1}{n} X^T X \quad (\text{for centered data})
Var(w)=wTCw\text{Var}(w) = w^T C w
C=VΛVTC = V \Lambda V^T

where VV contains eigenvectors (principal components) and Λ\Lambda contains eigenvalues (variances).

C. Regularization (Ridge/Lasso)

Loss=SSE+λ∥w∥22\text{Loss} = \text{SSE} + \lambda \|w\|_2^2
Loss=SSE+λ∥w∥1\text{Loss} = \text{SSE} + \lambda \|w\|_1

D. Support Vector Machines (SVM)

min⁡w,b12∥w∥2s.t.yi(wTxi+b)≥1\min_{w,b} \frac{1}{2} \|w\|^2 \quad \text{s.t.} \quad y_i (w^T x_i + b) \geq 1
min⁡w,b,ξ12∥w∥2+C∑ξis.t.yi(wTxi+b)≥1−ξi,ξi≥0\min_{w,b,\xi} \frac{1}{2} \|w\|^2 + C \sum \xi_i \quad \text{s.t.} \quad y_i (w^T x_i + b) \geq 1 - \xi_i, \xi_i \geq 0

E. Ensemble Methods

MethodKey CharacteristicsExample Models
Bagging- Parallel executionRandom Forest
- Uses deep trees
- Reduces variance
Boosting- Sequential executionAdaBoost, Gradient Boosting
- Uses weak learners (e.g., decision stumps)
- Reduces bias

F. Naive Bayes

p(x1,x2,…,xd∣y)=∏i=1dp(xi∣y)p(x_1, x_2, \dots, x_d | y) = \prod_{i=1}^d p(x_i | y)
p(y∣x)∝p(y)∏i=1dp(xi∣y)p(y | x) \propto p(y) \prod_{i=1}^d p(x_i | y)

G. Clustering (k-Means)

H. Logistic Regression

σ(z)=11+e−z,z=wTx+b\sigma(z) = \frac{1}{1 + e^{-z}}, \quad z = w^T x + b
p(y=1∣x)=σ(wTx+b)p(y=1 | x) = \sigma(w^T x + b)
p(y=1∣x)=0.75  ⟹  p(y=1∣−x)=0.25p(y=1 | x) = 0.75 \implies p(y=1 | -x) = 0.25

I. Kernel Methods

J. Decision Trees & Information Gain

H(S)=−∑ipilog⁡2piH(S) = -\sum_{i} p_i \log_2 p_i
Gain(S,A)=H(S)−∑v∈values(A)∣Sv∣∣S∣H(Sv)\text{Gain}(S, A) = H(S) - \sum_{v \in \text{values}(A)} \frac{|S_v|}{|S|} H(S_v)

K. Neural Networks

Params=∑l=1L−1(neurons in layer l)×(neurons in layer l+1)\text{Params} = \sum_{l=1}^{L-1} (\text{neurons in layer } l) \times (\text{neurons in layer } l+1)
ReLU(x)=max⁡(0,x)\text{ReLU}(x) = \max(0, x)

L. Loss Functions

Loss FunctionFormulaUse Case
0-1 LossL=I(y≠y^)L = \mathbb{I}(y \neq \hat{y})Classification (non-convex)
Hinge Loss (SVM)L=max⁡(0,1−yy^)L = \max(0, 1 - y \hat{y})SVM
Logistic LossL=log⁡(1+e−yy^)L = \log(1 + e^{-y \hat{y}})Logistic Regression
Perceptron LossL=max⁡(0,−yy^)L = \max(0, -y \hat{y})Perceptron
Squared LossL=(y−y^)2L = (y - \hat{y})^2Regression
(wTx)y=ln⁡(e−1)(\mathbf{w}^T \mathbf{x}) y = \ln(e - 1)

M. Bayesian Learning

p^=α+successesα+β+n\hat{p} = \frac{\alpha + \text{successes}}{\alpha + \beta + n}

Graph 2: Unsupervised Learning Relationships

Graph 3: Ensemble Methods

Graph 4: SVM Components

Graph 5: Neural Network Architecture

Graph 6: Loss Functions

Graph 7: Bayesian Learning


3. Key Equations Summary

TopicEquation
SSE Gradient∇wSSE=−2(y−wTx)x\nabla_w \text{SSE} = -2 (y - w^T x) x
PCA VarianceVar(w)=wTCw\text{Var}(w) = w^T C w
Ridge RegressionLoss=SSE+λ∥w∥22\text{Loss} = \text{SSE} + \lambda \|w\|_2^2
SVM Hard-Marginmin⁡12∥w∥2\min \frac{1}{2} \|w\|^2 s.t. yi(wTxi+b)≥1y_i (w^T x_i + b) \geq 1
SVM Soft-Marginmin⁡12∥w∥2+C∑ξi\min \frac{1}{2} \|w\|^2 + C \sum \xi_i s.t. yi(wTxi+b)≥1−ξiy_i (w^T x_i + b) \geq 1 - \xi_i
Logistic Regressionp(y=1∣x)=σ(wTx+b)p(y=1|x) = \sigma(w^T x + b)
Information GainGain(S,A)=H(S)−∑∣Sv∣∣S∣H(Sv)\text{Gain}(S, A) = H(S) - \sum \frac{|S_v|}{|S|} H(S_v)
k-Means Objectivemin⁡∑i=1k∑x∈Ci∥x−μi∥2\min \sum_{i=1}^k \sum_{x \in C_i} \|x - \mu_i\|^2
Neural Network Params∑l=1L−1nl×nl+1\sum_{l=1}^{L-1} n_l \times n_{l+1} (ignoring biases)
Beta PosteriorBeta(α+successes,β+failures)\text{Beta}(\alpha + \text{successes}, \beta + \text{failures})

4. Exam Tips

  1. Linear Algebra: Focus on eigenvalues, gradients, and matrix operations (PCA, SVM).
  2. Optimization: Understand gradient descent, Lagrange multipliers (SVM), and regularization.
  3. Probability: Naive Bayes, Bayesian updating (Beta-Bernoulli).
  4. Geometry: SVM margins, cluster boundaries (k-Means), decision boundaries.
  5. Loss Functions: Know when to use which loss (hinge for SVM, logistic for classification, squared for regression).
  6. Ensemble Methods: Bagging vs. Boosting (parallel vs. sequential, deep trees vs. stumps).
  7. Neural Networks: Parameter counting, activation functions, output layer choices.