ML Study Hub

Home / Past papers / MLP End Term / this paper

IIT M DIPLOMA FN EXAM QDD2 13 Apr 2025 - 13 Apr 2025

MLP End Term30 questions50 marks16 MCQ · 7 SA · 7 MSQDiploma / forenoon / QDD2
Elapsed 00:00
Q1MCQ1 mark
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ1 mark
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MCQ1 mark
question figure
  1. 10.5
  2. 11.0
  3. 11.5
  4. 12.3
Q4MCQ1 mark
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MCQ1 mark
What is the primary computational bottleneck of the KNeighborsClassifier?
  1. Training the model.
  2. Choosing the best k value.
  3. Storing and searching through all training samples at prediction time.
  4. Calculating class probabilities.
Q6MCQ1 mark
question figure
  1. Increasing the number of hidden layers always improves regression accuracy.
  2. Using the ReLU activation function in hidden layers is a good choice for MLPregression.
  3. The output layer should use a softmax activation to predict continuous houseprices.
  4. MLPRegressor does not require feature scaling since neural networksautomatically normalize input data.
Q7MCQ2 marks
Which of the following correctly fills the missing part blank while ensuring correct preprocessing and avoiding common pitfalls? question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q8MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q9MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q10MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q11MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q12MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q13MCQ2 marks
question figure
  1. It can only be used with classifiers that output probabilities.
  2. When voting=‘hard’, it chooses the class with the highest sum of predictedprobabilities.
  3. When voting=‘soft’, it averages the predicted probabilities and picks the classwith the highest probability.
  4. It cannot be used with Pipeline objects.
Q14MCQ2 marks
question figure
  1. Convert images to grayscale.
  2. Scaling the data using Min-Max Scaling
  3. Apply PCA to reduce feature dimensions.
  4. One-Hot encode the target labels (digits 0-9)
Q15SA3 marks
question figure
Q16MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q17MSQ2 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q18MSQ2 marksselect all that apply
Which of the following techniques can be used for hyperparameter tuning in Ridge Regression? Select all correct options.
  1. GridSearchCV
  2. ElasticNetCV
  3. RandomizedSearchCV
  4. Mini batch gradient descent
Q19MSQ2 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q20MSQ2 marksselect all that apply
In top-down (divisive) hierarchical clustering, clusters are recursively split until each data point is its own cluster. The choice of a distance metric plays a crucial role in determining the quality of clustering. Which of the following distance (similarity) metrics are commonly used in hierarchical clustering?
  1. Euclidean Distance
  2. Manhattan Distance
  3. Jaccard Similarity
  4. Cosine Distance
Q21MSQ2 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q22MSQ3 marksselect all that apply
Which of the following statements are true with regard to logistic regression?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q23SA1 mark
question figure
Q24SA2 marks
Use the confusion matrix given below. What is the recall score for the label (class) 1 ? question figure Use the confusion matrix given below. What is the recall score for the label (class) 1 ?
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q25MSQ1 markselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q26SA1 mark
question figure
Q27SA1 mark
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q28MCQ1 mark
Consider the following assertion & reason and select the correct option: Assertion: This is a good model as we see a very high accuracy of 96% Reason: In the case of imbalanced datasets, accuracy might not be the best metric for evaluating a model
  1. Both the assertion and reason are correct, and the reason is a correctexplanation of the assertion
  2. Both the assertion and reason are correct, but the reason is not a correctexplanation of the assertion.
  3. The assertion is correct, but the reason is incorrect.
  4. The assertion is incorrect, but the reason is correct.
Q29SA1 mark
How many points belong to class 1 in the original dataset?
Q30SA1 mark
question figure

Answer key

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

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 essential for the exam, followed by Mermaid knowledge graphs to visualize relationships.


Core Topics & Concepts

1. Data Preprocessing

Key Concepts:

Xscaled=X−XminXmax−XminX_{\text{scaled}} = \frac{X - X_{\text{min}}}{X_{\text{max}} - X_{\text{min}}}
Xscaled=X−μσX_{\text{scaled}} = \frac{X - \mu}{\sigma}

Common Pitfalls:


2. Supervised Learning Algorithms

A. Linear Models

J(θ)=12m∑i=1m(hθ(x(i))−y(i))2J(\theta) = \frac{1}{2m} \sum_{i=1}^m (h_\theta(x^{(i)}) - y^{(i)})^2
J(θ)=MSE+α∑j=1nθj2J(\theta) = \text{MSE} + \alpha \sum_{j=1}^n \theta_j^2
J(θ)=MSE+α∑j=1n∣θj∣J(\theta) = \text{MSE} + \alpha \sum_{j=1}^n |\theta_j|

B. Logistic Regression

σ(z)=11+e−z\sigma(z) = \frac{1}{1 + e^{-z}}
J(θ)=−1m∑i=1m[y(i)log⁡(hθ(x(i)))+(1−y(i))log⁡(1−hθ(x(i)))]J(\theta) = -\frac{1}{m} \sum_{i=1}^m [y^{(i)} \log(h_\theta(x^{(i)})) + (1 - y^{(i)}) \log(1 - h_\theta(x^{(i)}))]

C. k-Nearest Neighbors (KNN)

D. Support Vector Machines (SVM)

E. Decision Trees & Ensembles

Gini=1−∑i=1cpi2Gini = 1 - \sum_{i=1}^c p_i^2
Entropy=−∑i=1cpilog⁡(pi)Entropy = -\sum_{i=1}^c p_i \log(p_i)

F. Neural Networks (MLP)


3. Model Evaluation

Metrics:

MetricFormulaUse Case
AccuracyTP+TNTP+TN+FP+FN\frac{TP + TN}{TP + TN + FP + FN}Balanced datasets.
PrecisionTPTP+FP\frac{TP}{TP + FP}Minimize false positives.
Recall (Sensitivity)TPTP+FN\frac{TP}{TP + FN}Minimize false negatives.
F1-Score2×Precision×RecallPrecision+Recall2 \times \frac{\text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}}Imbalanced datasets.
ROC-AUCArea under ROC curve (TPR vs. FPR).Binary classification.
MSE/RMSEMSE=1n∑(yi−y^i)2\text{MSE} = \frac{1}{n} \sum (y_i - \hat{y}_i)^2Regression.

Confusion Matrix:

              Predicted
            |   0   |   1   |
-----------|-------|-------|
Actual 0   |  TN   |  FP   |
Actual 1   |  FN   |  TP   |

Imbalanced Data:


4. Unsupervised Learning

A. Clustering

J=∑i=1k∑x∈Ci∥x−μi∥2J = \sum_{i=1}^k \sum_{x \in C_i} \|x - \mu_i\|^2

B. Dimensionality Reduction


5. Hyperparameter Tuning

Methods:

Example for Ridge Regression:

param_dist = {'ridge__alpha': [0.01, 0.1, 1, 10, 100]}
search = RandomizedSearchCV(pipeline, param_distributions=param_dist, cv=5)

6. Model Interpretation & Debugging

Common Issues:

Debugging Tips:


7. Scikit-Learn Specifics

Key Classes/Methods:

TaskClass/MethodExample
Train-test splittrain_test_splitX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
Cross-validationcross_val_scorescores = cross_val_score(model, X, y, cv=5)
Dummy modelsDummyClassifier(strategy='median')Baseline comparison.
Target type detectiontype_of_targettype_of_target(y) → 'multiclass'
Classification reportclassification_reportprint(classification_report(y_true, y_pred))

Pitfalls:


2. Supervised Learning Algorithms

3. Model Evaluation Metrics

4. Hyperparameter Tuning

5. Handling Imbalanced Data

6. Clustering Algorithms

7. Neural Networks (MLP)