Meta · ML & AI Fundamentals
Explain key ML metrics and techniques
TrueInterview
October 7, 2026 · 2 min read
You will be given a series of brief conceptual questions on machine learning.
-
Confusion matrix and metrics For a binary classification problem:
- State what each entry of the confusion matrix represents: true positive (TP), false positive (FP), true negative (TN), and false negative (FN).
- Express accuracy, precision, recall, and, if you include it, F1-score in terms of TP, FP, TN, and FN.
- Briefly explain in words what precision and recall each measure.
-
Ensemble learning
- What does ensemble learning mean?
- Why can combining several base models into an ensemble improve performance?
- Briefly describe common ways of combining model outputs.
-
Bagging vs. boosting Compare bagging and boosting along the following dimensions:
- How each method constructs training sets and trains base learners.
- Whether each method primarily reduces bias, variance, or both.
- The main advantages and disadvantages of each.
- Name at least one common algorithm that uses bagging and one that uses boosting.
-
L1 vs. L2 regularization Consider a supervised learning model with loss function over parameters and a regularization term with strength :
- Write the objective for L1-regularized training and L2-regularized training.
- Explain how L1 and L2 regularization each affect the learned parameters (for example, sparsity vs. shrinkage).
- Discuss when you might prefer L1 over L2, and vice versa.
-
Two-layer neural network forward pass Consider a simple two-layer feedforward neural network: input → hidden layer → output layer.
- Let the input vector be . The hidden layer uses weight matrix and bias vector with activation function applied elementwise.
- The output layer uses weight matrix and bias vector with activation function (e.g., identity, sigmoid, or softmax). (a) Write the mathematical expressions for the hidden activations and final output in terms of , , , , , , and . (b) Briefly describe how you would carry out a concrete numerical computation of the network output given specific numeric values for these quantities.
Overview: This question evaluates understanding of core Machine Learning concepts including classification evaluation metrics, ensemble methods (bagging vs. boosting), regularization (L1 vs. L2), and two-layer neural network forward computation, testing both model-evaluation and model-building competencies.