MLT End Term30 questions50 marks14 SA · 13 MCQ · 3 MSQImprovement / forenoon / QDD1
Elapsed 00:00
Q1MCQ3 marks
80%
60%
20%
15%
Q2MCQ3 marks
Q3MCQ3 marks
Match the characteristics given below with the appropriate ensemble technique. 1. Decision stumps 2. Deep decision trees 3. Parallel execution 4. Sequential execution
Bagging → (2), (3); Boosting → (1), (4)
Bagging → (1), (4); Boosting → (2), (3)
Bagging → (1), (3); Boosting → (2), (4)
Bagging → (2), (4); Boosting → (1), (3)
Q4MCQ3 marks
The predicted labels for x1 and x2 are 1 and −1 respectively.
The predicted labels for x1 and x2 are −1 and 1 respectively.
The predicted label for both data-points is 1.
The predicted label for both data-points is −1.
Q5MCQ3 marks
Q6MCQ3 marks
2x1 + x2 = 0
x1 − 2x2 = 0
x1 + x2 = 0
x1 + 2x2 = 0
Q7SA3 marks
Q8SA3 marks
Q9SA3 marks
Q10MSQ3 marksselect all that apply
2
4
3
5
Q11MSQ3 marksselect all that apply
The dataset is linearly separable with a positive margin.
The perceptron algorithm will terminate after a finite number of iterationswhen trained on this dataset.
The dataset is linearly separable, but the margin may be zero.
The dataset is not linearly separable.
Q12MSQ3 marksselect all that apply
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q13MCQ1 mark
The weight vector output by the perceptron algorithm on this dataset can be expressed as a linear combination of the data-points where the coefficients of the linear combination are integers.
TRUE
FALSE
Q14MCQ1 mark
TRUE
FALSE
Q15MCQ1 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.
TRUE
FALSE
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q16SA0.5 marks
Q17SA0.5 marks
Q18SA0.5 marks
Q19SA0.5 marks
Q20SA0.5 marks
Q21SA0.5 marks
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q22SA0.5 marks
Q23SA0.5 marks
Q24SA0.5 marks
Q25SA0.5 marks
Enter the number corresponding to the squared loss._______________
Q26MCQ1 mark
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q27SA1 mark
How many learnable parameters does this network have? Ignore the biases in the computation.
Q28MCQ1 mark
What is the most appropriate choice of activation function for the output layer if the binary cross-entropy loss is used?
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 essential for the exam, followed by Mermaid knowledge graphs to visualize relationships.
1. Core Topics & Concepts
A. Principal Component Analysis (PCA)
Key Idea: Dimensionality reduction by projecting data onto orthogonal axes (principal components) that maximize variance.
Eigenvalues of Covariance Matrix:
Represent variance along principal components.
Total variance = Sum of all eigenvalues.
Variance captured by top-k PCs = (Sum of top-k eigenvalues) / (Total variance).
Equation:
Variance captured (%)=∑i=1dλi∑i=1kλi×100
(Where λi are eigenvalues, d is dimensionality.)
B. Regularization (Ridge Regression)
Key Idea: Penalize large weights to prevent overfitting.
Loss Function:
L(w)=SSE+λ∥w∥22
(SSE = Sum of Squared Errors, λ = regularization strength.)
Plot Interpretation:
Training loss decreases with model complexity (lower λ).
Test loss has a U-shape; optimal λ minimizes it.
Best f(λ): λ (balances scale for visualization).
C. Ensemble Methods (Bagging vs. Boosting)
Feature
Bagging
Boosting
Base Models
Deep trees (high variance)
Decision stumps (high bias)
Execution
Parallel (independent models)
Sequential (corrects predecessors)
Combination
Averaging/voting
Weighted voting
Example Algorithms
Random Forest
AdaBoost, Gradient Boosting
D. Support Vector Machines (SVM)
Hard-Margin SVM:
Decision Boundary: wTx+b=0.
Supporting Hyperplanes: wTx+b=±1.
Margin: ∥w∥2.
Distance between hyperplanes: ∥w∥2.
Soft-Margin SVM:
Slack Variables (ξi): Allow misclassification.
Objective:
w,b,ξmin21∥w∥2+Ci∑ξi
(Subject to yi(wTxi+b)≥1−ξi.)
Lagrange Multipliers (αi):
0≤αi≤C.
Support Vectors: Points with αi>0.
KKT Conditions:
If αi=0: Point is correctly classified outside margin.
If 0<αi<C: Point lies on margin (ξi=0).
If αi=C: Point is misclassified (ξi>0).
E. Naive Bayes
Class Conditional Independence:
p(x∣y)=j=1∏dp(xj∣y)
(Features xj are independent given class y.)
Posterior Probability:
p(y∣x)∝p(y)j=1∏dp(xj∣y)
F. Clustering (k-Means)
Cluster Boundary: Perpendicular bisector between centroids.
For centroids c1,c2, boundary is:
∥x−c1∥2=∥x−c2∥2
Simplifies to a linear equation (e.g., 2x1+x2=0).
G. Logistic Regression
Sigmoid Function:
σ(z)=1+e−z1,z=wTx
Probability of Class 1:
p(y=1∣x)=σ(wTx)
Weight Interpretation:
If w=[a,b]T, then:
p(y=1∣x)=1+e−(ax1+bx2)1
Given p(y=1∣[1,1]T)=1+e21, solve for w.
H. Decision Trees & Information Gain
Entropy:
H(S)=−i∑pilog2pi
(Where pi = proportion of class i in set S.)
Information Gain:
IG=H(parent)−j∑∣S∣∣Sj∣H(Sj)
(Where Sj are child nodes.)
I. Kernels (Polynomial Kernel)
Polynomial Kernel:
K(x,z)=(xTz+c)p
Non-negativity: For even p, kernel is always non-negative.
Valid p: 2, 4 (not odd degrees like 3, 5).
J. Neural Networks
Learnable Parameters:
For layer L with nL neurons and layer L−1 with nL−1 neurons: