ML Study Hub

Home / Past papers / MLP End Term / this paper

IIT M FOUNDATION DIPLOMA FN EXAM QDF1 28 Apr 2024 - 28 Apr 2024

MLP End Term40 questions100 marks20 MCQ · 11 SA · 9 MSQFoundation / Diploma / forenoon / QDF1
Elapsed 00:00
Q1MCQ0 marks
Instruction: Note: For numerical answer type questions enter your answer correct upto 2 decimal places without rounding off, unless stated otherwise.
  1. Instruction has been mentioned above.
  2. This Instruction is just for a reference & not for an evaluation.
Q2MCQ2 marks
Select multilabel multiclass classification problems:
  1. There is a collection of photographs. Each photograph can have multipleanimals, e.g., cats, dogs and birds. Your model should indicate all the animals which are present.
  2. From appropriate weather data, your model must predict, averagetemperature and average humidity for next seven days.
  3. Predicting expected price of a second hand car with appropriate features.
  4. None of these.
Q3MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4MCQ2 marks
Which of the following can be used (with appropriate supporting code) to compute training error after each iteration?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q5MCQ2 marks
question figure
  1. 1106
  2. 82
  3. 1024
  4. 5
  5. None of these
Q6MCQ2 marks
What is the purpose of k-fold cross-validation ?
  1. To split data into training and testing sets.
  2. To tune hyperparameters.
  3. To evaluate model performance on multiple subsets.
  4. To preprocess data.
Q7MCQ2 marks
question figure
  1. Statement 1 is True and Statement 2 is False
  2. Statement 2 is True and Statement 1 is False
  3. Both the statements are True
  4. Both the statements are False
Q8MCQ2 marks
Which assumption does Naive Bayes make about the features?
  1. They are independent of each other.
  2. They are always a numerical representation of the text data.
  3. They are linearly related.
  4. They are categorical.
  5. None of these.
Q9MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q10MCQ3 marks
You’re working on a dataset containing customer purchase data, and you want to segment the customers into distinct groups based on their purchasing behavior. Each data point represents a customer and includes features like “Total Amount Spent” and “Number of Items Purchased.” Which algorithm is suitable for this scenario?
  1. Linear Regression
  2. Decision Tree
  3. K-means Clustering
  4. Support Vector Machine
  5. None of these
Q11MCQ3 marks
question figure
  1. Increasing the number of neurons in hidden layers will always lead to bettermodel performance.
  2. Decreasing the number of neurons in hidden layers reduces the model’scapacity to capture complex patterns.
  3. The number of neurons in hidden layers does not significantly affect themodel’s performance.
  4. Finding the optimal number of neurons is a trial-and-error process and mayrequire experimentation.
Q12MCQ3 marks
How does agglomerative clustering handle outliers?
  1. It ignores outliers during the clustering process.
  2. It assigns outliers to the nearest cluster.
  3. It creates separate clusters for outliers.
  4. It removes outliers from the dataset before clustering.
Q13MCQ3 marks
What is agglomerative clustering?
  1. A hierarchical clustering technique that starts with each data point as itscluster and merges the closest clusters iteratively.
  2. A method for partitioning data into a predefined number of clusters.
  3. A clustering algorithm that uses centroids to iteratively assign data points toclusters.
  4. A dimensionality reduction technique that projects data onto a lower-dimensional space.
Q14MCQ3 marks
What initialization method is best in KMeans to select initial cluster centroids?
  1. Random initialization
  2. K-means++ initialization
  3. Hierarchical agglomerative initialization
  4. Weighted initialization
Q15MCQ3 marks
question figure
  1. The distance between cluster centroids
  2. The number of clusters formed
  3. Sum of squared distances of samples to their closest cluster center.
  4. The silhouette coefficient
Q16MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q17MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q18MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q19MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q20MSQ2 marksselect all that apply
What is the solution for overfitting?
  1. To have less constraints/regularization
  2. To have more constraints/regularization
  3. Delete a significant portion of data
  4. Increase the dataset size.
  5. None of these.
Q21MSQ2 marksselect all that apply
Select all the correct options:
  1. The more the SGD iterations, the lesser the fluctuations in training error.
  2. More iterations require more computation time.
  3. The tol (error tolerance) parameter restricts the number of iterationsperformed.
  4. Training error might not consistently decrease while performing SGDiterations.
  5. None of these
Q22MSQ2 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q23MSQ2 marksselect all that apply
Which of the following statements are true?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q24MSQ2 marksselect all that apply
Which of the following options are correct regarding regularization?
  1. It is a technique used to minimize the adjusted loss function and avoidunderfitting.
  2. It helps in increasing the bias of the training model.
  3. It determines the rows to be selected as a training dataset.
  4. Elastic net regularization is a combination of L1 and L2 regularization both.
Q25MSQ3 marksselect all that apply
Which of the following techniques are used in decision trees to make decisions or to measure the quality of a split while training the model?
  1. Entropy
  2. RoC Curve
  3. Cross Entropy
  4. Gini Impurity
Q26MSQ3 marksselect all that apply
Which of the following approaches is(are) helpful to find a good value for k in k−means clustering algorithm?
  1. Plotting an Elbow curve.
  2. Using classifiers before making clusters.
  3. Plotting Silhouette coefficient for various values of k.
  4. Using k-fold cross validation
Q27MSQ4 marksselect all that apply
question figure
  1. 10 number of samples at node N. If it is split, it can split such that 2 samples inthe left child and 8 samples in the right child.
  2. 6 number of samples at node N. If it is split, it can split such that 3 samples inthe left child and 3 samples in the right child.
  3. 12 number of samples at node N. If it is split, it can split such that 5 samples inthe left child and 7 samples in the right child.
  4. 4 number of samples at node N. If it is split, it can split such that 3 samples inthe left child and 1 samples in the right child.
Q28SA2 marks
question figure
Q29SA2 marks
question figure
Q30SA2 marks
question figure
Q31SA2 marks
question figure
Q32SA2 marks
question figure
Q33SA3 marks
question figure
Q34SA3 marks
question figure
Q35SA3 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q36MSQ2 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q37SA2 marks
question figure
Q38SA2 marks
question figure
Q39SA2 marks
question figure
Q40MCQ2 marks
question figure
  1. The number of rows will decrease in the dataset.
  2. The number of columns will decrease in the dataset.
  3. The number of columns and number of rows, both, will decrease in thedataset.
  4. There will be no change.
  5. Insufficient information.

Answer key

  1. Q1 (MCQ, 0 marks): A
  2. Q2 (MCQ, 2 marks): A
  3. Q3 (MCQ, 2 marks): A
  4. Q4 (MCQ, 2 marks): A
  5. Q5 (MCQ, 2 marks): C
  6. Q6 (MCQ, 2 marks): C
  7. Q7 (MCQ, 2 marks): A
  8. Q8 (MCQ, 2 marks): A
  9. Q9 (MCQ, 3 marks): A
  10. Q10 (MCQ, 3 marks): C
  11. Q11 (MCQ, 3 marks): D
  12. Q12 (MCQ, 3 marks): B
  13. Q13 (MCQ, 3 marks): A
  14. Q14 (MCQ, 3 marks): B
  15. Q15 (MCQ, 3 marks): C
  16. Q16 (MCQ, 4 marks): A
  17. Q17 (MCQ, 4 marks): D
  18. Q18 (MCQ, 4 marks): C
  19. Q19 (MCQ, 4 marks): C
  20. Q20 (MSQ, 2 marks): B, D
  21. Q21 (MSQ, 2 marks): A, B, C, D
  22. Q22 (MSQ, 2 marks): B, C
  23. Q23 (MSQ, 2 marks): A, C
  24. Q24 (MSQ, 2 marks): B, D
  25. Q25 (MSQ, 3 marks): A, D
  26. Q26 (MSQ, 3 marks): A, C
  27. Q27 (MSQ, 4 marks): A, D
  28. Q28 (SA, 2 marks): 0.5
  29. Q29 (SA, 2 marks): 0.8
  30. Q30 (SA, 2 marks): 0.37 to 0.38
  31. Q31 (SA, 2 marks): 0.32 to 0.35
  32. Q32 (SA, 2 marks): 1
  33. Q33 (SA, 3 marks): 36
  34. Q34 (SA, 3 marks): 1.00
  35. Q35 (SA, 3 marks): 1
  36. Q36 (MSQ, 2 marks): A, C
  37. Q37 (SA, 2 marks): 120
  38. Q38 (SA, 2 marks): 3
  39. Q39 (SA, 2 marks): -1
  40. Q40 (MCQ, 2 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 essential for the Diploma Level: Machine Learning Practices (Computer-Based Exam). The summary is organized by themes (e.g., Supervised Learning, Unsupervised Learning, Model Evaluation, Preprocessing, etc.), followed by a knowledge graph in Mermaid syntax to visualize relationships.



1. Core Topics & Concepts

A. Supervised Learning

1. Classification

σ(z)=11+e−z,z=wTx+b\sigma(z) = \frac{1}{1 + e^{-z}}, \quad z = \mathbf{w}^T \mathbf{x} + b
L(y,y^)=−1N∑i=1N[yilog⁡(y^i)+(1−yi)log⁡(1−y^i)]L(y, \hat{y}) = -\frac{1}{N} \sum_{i=1}^N \left[ y_i \log(\hat{y}_i) + (1 - y_i) \log(1 - \hat{y}_i) \right]
P(y∣x)=P(x∣y)P(y)P(x)P(y | \mathbf{x}) = \frac{P(\mathbf{x} | y) P(y)}{P(\mathbf{x})}
G=1−∑k=1Cpk2G = 1 - \sum_{k=1}^C p_k^2
H=−∑k=1Cpklog⁡2(pk)H = -\sum_{k=1}^C p_k \log_2(p_k)
L(y,y^)=max⁡(0,1−y⋅y^)L(y, \hat{y}) = \max(0, 1 - y \cdot \hat{y})
w←w+η(yi−y^i)xi\mathbf{w} \leftarrow \mathbf{w} + \eta (y_i - \hat{y}_i) \mathbf{x}_i

2. Regression

L(w,b)=1N∑i=1N(yi−y^i)2L(\mathbf{w}, b) = \frac{1}{N} \sum_{i=1}^N (y_i - \hat{y}_i)^2
w=(XTX)−1XTy\mathbf{w} = (\mathbf{X}^T \mathbf{X})^{-1} \mathbf{X}^T \mathbf{y}
w←w−η∇L(w)\mathbf{w} \leftarrow \mathbf{w} - \eta \nabla L(\mathbf{w})
L(w)=MSE+α∥w∥1L(\mathbf{w}) = \text{MSE} + \alpha \|\mathbf{w}\|_1
L(w)=MSE+α∥w∥22L(\mathbf{w}) = \text{MSE} + \alpha \|\mathbf{w}\|_2^2

3. Ensemble Methods


B. Unsupervised Learning

1. Clustering

Inertia=∑i=1Nmin⁡μj∈C∥xi−μj∥2\text{Inertia} = \sum_{i=1}^N \min_{\mu_j \in C} \| \mathbf{x}_i - \mu_j \|^2

2. Dimensionality Reduction


C. Model Evaluation

1. Metrics

2. Cross-Validation

3. Bias-Variance Tradeoff


D. Preprocessing & Data Handling

1. Data Cleaning

2. Feature Transformation

3. Pandas Operations


E. Neural Networks (MLP)


F. Special Topics

1. Multi-Label/Multi-Class Classification

2. Initialization Methods

3. Outlier Handling in Clustering



2. Key Equations

TopicEquation
Logistic Regressionσ(z)=11+e−z\sigma(z) = \frac{1}{1 + e^{-z}}, z=wTx+bz = \mathbf{w}^T \mathbf{x} + b
Log LossL=−1N∑[ylog⁡(y^)+(1−y)log⁡(1−y^)]L = -\frac{1}{N} \sum [y \log(\hat{y}) + (1-y) \log(1-\hat{y})]
Linear Regressiony^=wTx+b\hat{y} = \mathbf{w}^T \mathbf{x} + b
MSEL=1N∑(y−y^)2L = \frac{1}{N} \sum (y - \hat{y})^2
Normal Equationw=(XTX)−1XTy\mathbf{w} = (\mathbf{X}^T \mathbf{X})^{-1} \mathbf{X}^T \mathbf{y}
SGD Updatew←w−η∇L\mathbf{w} \leftarrow \mathbf{w} - \eta \nabla L
L1 RegularizationL=MSE+α∥w∥1L = \text{MSE} + \alpha \|\mathbf{w}\|_1
L2 RegularizationL=MSE+α∥w∥22L = \text{MSE} + \alpha \|\mathbf{w}\|_2^2
Gini ImpurityG=1−∑pk2G = 1 - \sum p_k^2
EntropyH=−∑pklog⁡2(pk)H = -\sum p_k \log_2(p_k)
k-Means Inertia∑min⁡μj∥xi−μj∥2\sum \min_{\mu_j} \|\mathbf{x}_i - \mu_j\|^2
PCA VarianceExplained Variance Ratio=λj∑λ\text{Explained Variance Ratio} = \frac{\lambda_j}{\sum \lambda}
Perceptron Updatew←w+η(y−y^)x\mathbf{w} \leftarrow \mathbf{w} + \eta (y - \hat{y}) \mathbf{x}
Standard Scalingz=x−μσz = \frac{x - \mu}{\sigma}
MinMax Scalingxscaled=x−min⁡(X)max⁡(X)−min⁡(X)x_{\text{scaled}} = \frac{x - \min(X)}{\max(X) - \min(X)}


Graph 2: Unsupervised Learning Relationships

Graph 3: Model Evaluation & Preprocessing

Graph 4: Data Preprocessing

Graph 5: Ensemble Methods

Graph 6: Neural Networks (MLP)



4. Exam Tips

  1. Focus Areas:

    • Algorithms: Know when to use which (e.g., k-means for clustering, logistic regression for binary classification).
    • Hyperparameters: Understand their impact (e.g., max_depth in decision trees, n_estimators in random forests).
    • Preprocessing: Scaling, encoding, and handling missing data are critical.
    • Evaluation: Metrics and cross-validation strategies.
    • Math: Equations for loss functions, regularization, and probability (e.g., Naive Bayes).
  1. Common Pitfalls:

    • Overfitting: Regularization, cross-validation, and ensemble methods help.
    • Data Leakage: Ensure preprocessing (e.g., scaling) is done within cross-validation folds.
    • Class Imbalance: Use class_weight='balanced' or resampling techniques.
  1. Coding:

    • Know how to implement pipelines, column transformers, and grid search in sklearn.
    • Understand how to interpret confusion matrices and classification reports.
  1. Pandas:

    • Master loc/iloc, groupby, apply, and handling mixed data types.

This summary covers 90% of the exam content. Use the knowledge graphs to visualize connections between topics, and focus on equations for mathematical questions. Good luck!