chapter

    Machine Learning Short Notes for Gate Da

    GATE DA Machine Learning: 4 units and 21 chapters, weightage from 26 previous year questions across 3 papers, a study order by exam weight and 2839 practice q

    A question from this chapter

    Question 1
    Level 4: Challenger

    Consider a hard-margin Support Vector Machine trained on the following dataset in :

    Positive class ():

    Negative class (): ,

    The SVM optimization problem is formulated in the primal as:

    Which of the following are the exact values for the parameters and metrics of the optimal classifier?

    Question 2
    Level 4: Challenger

    Consider a binary classification dataset in 1D with three points: with label , with label , and with label . A hard-margin linear Support Vector Machine is trained on this data to find the maximum margin hyperplane . What is the value of for the optimal parameters?

    Question 3
    Level 1: Warm-up

    Match the following matrix expressions with their roles in the Ridge Regression closed-form solution :

    <b>List I</b>

    P.

    Q.

    R.

    <b>List II</b>

    1. Regularized Gram matrix inverse
    2. Regularized Gram matrix
    3. Cross-covariance vector

    Choose the correct matching:

    Question 4
    Level 4: Challenger

    Consider a 1D dataset with two points: with label , and with label . We train a soft-margin Support Vector Machine by minimizing the primal objective:

    subject to and . Let be the optimal weight for a given penalty parameter . What is the value of ?

    Question 5
    Level 4: Challenger

    Consider the ridge regression objective

    with , , , and . Starting from , perform one step of gradient descent with learning rate . What is the value of ?

    Question 6
    Level 1: Warm-up

    A hard-margin SVM is trained on a linearly separable dataset. The optimal weight vector is parallel to . Two support vectors are with and with .

    What is the value of the primal objective function at the optimum?

    Question 7
    Level 4: Challenger

    Consider a hard-margin SVM trained on the dataset: with label , with label , and with label . A student claims that all points in a linearly separable dataset must be support vectors if they are not strictly inside the convex hull of their class. This is a contradiction because points can lie outside the margin without being support vectors. What is the minimum number of support vectors this SVM can have?

    Question 8
    Level 4: Challenger

    Consider a hard-margin Support Vector Machine trained on a binary classification dataset of points in , with at least one point in each class. All points lie on the unit sphere, i.e., for all . The SVM is trained without a bias term, so the decision boundary passes through the origin. What is the maximum possible value of the margin ?

    Free preview ends here

    Login to view the complete short notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Machine Learning Short Notes for GATE DA

    GATE DA Machine Learning: 4 units and 21 chapters, weightage from 26 previous year questions across 3 papers, a study order by exam weight and 2839 practice questions.

    About Machine Learning Short Notes

    Quick revision sheets for Machine Learning in GATE DA. Every chapter is condensed into key formulas, shortcuts and common traps so you can revise 21 chapters fast before the exam.

    GATE DA Machine Learning Unit-wise Weightage from Past Papers

    We counted every GATE DA Machine Learning previous year question in our bank (26 questions from 3 papers) and grouped them by unit.

    UnitChaptersPYQsShare of sectionAvg per paper
    Supervised Learning92181%7
    Unit 1 — Machine Learning300%0
    Unit 2 — Machine Learning300%0
    Unsupervised Learning6519%1.7

    Suggested Machine Learning Study Order for GATE DA

    1. Supervised Learning: 81% of past Machine Learning questions, about 7 per paper.
    2. Unsupervised Learning: 19% of past Machine Learning questions, about 1.7 per paper.

    Start where the marks are. Units at the top of this list have appeared most often in past GATE DA papers.

    Units in GATE DA Machine Learning

    All Machine Learning chapters

    One Solved Question from Each Machine Learning Chapter

    Question 1 · Chapter 1 — Supervised Learning MSQ

    Consider a hard-margin Support Vector Machine trained on the following dataset in :

    Positive class ():

    Negative class (): ,

    The SVM optimization problem is formulated in the primal as:

    Which of the following are the exact values for the parameters and metrics of the optimal classifier?

    1. A.

      The Lagrange multiplier lpha_1 corresponding to is .

    2. B.

      The bias term is .

    3. C.

      The geometric margin of the classifier is .

    4. D.

      The Lagrange multiplier lpha_2 corresponding to is .

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Key idea: This is a hard-margin SVM problem with a symmetric dataset. The key is to find the unnormalized hyperplane by geometry, scale it so the minimum functional margin is exactly 1, and then use the KKT conditions to find the Lagrange multipliers.

    Step 1: Find the unnormalized separating hyperplane.

    By symmetry, the optimal hyperplane is the vertical line midway between and the segment connecting .

    The x-coordinate of is 2. The x-coordinate of is -1.

    The midpoint is .

    So the unnormalized normal is and unnormalized bias is .

    Step 2: Scale to satisfy the standard SVM constraints.

    Calculate the functional margin for the support vectors using :

    For : .

    For : .

    Since the minimum functional margin is 1.5, we scale and by to make it exactly 1.

    .

    .

    This confirms Option B is correct.

    Step 3: Calculate the geometric margin.

    The geometric margin is .

    This confirms Option C is correct.

    Step 4: Find the Lagrange multipliers using KKT conditions.

    We know and .

    Substitute the values:

    .

    This gives two equations:

    .

    The sum constraint gives:

    .

    Substitute and into the first equation:

    .

    Then and .

    This confirms Option A is correct and Option D is incorrect.

    Answer: A, B, C

    Question 2 · Chapter 1 — Unit 1 — Machine Learning MCQ

    Consider a binary classification dataset in 1D with three points: with label , with label , and with label . A hard-margin linear Support Vector Machine is trained on this data to find the maximum margin hyperplane . What is the value of for the optimal parameters?

    1. A.

      -3

    2. B.

      3

    3. C.

      5

    4. D.

      1.8

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The maximum margin hyperplane is determined by the support vectors, which are the points closest to the decision boundary. We must identify the correct support vectors by checking the margin constraints .

    Step 1: Assume the support vectors are and . The constraints are tight: .

    For : .

    For : .

    Step 2: Solve the system. Adding the two equations: .

    Substitute into the second equation: .

    Step 3: Verify the constraint for the remaining point .

    .

    Since , the constraint is satisfied, confirming and are the true support vectors.

    Step 4: Calculate the requested value.

    .

    Answer: 5

    Question 3 · Regression, Regularization and Gradient-Based Learning MCQ

    Match the following matrix expressions with their roles in the Ridge Regression closed-form solution :

    <b>List I</b>

    P.

    Q.

    R.

    <b>List II</b>

    1. Regularized Gram matrix inverse
    2. Regularized Gram matrix
    3. Cross-covariance vector

    Choose the correct matching:

    1. A.

      P-2, Q-3, R-1

    2. B.

      P-1, Q-3, R-2

    3. C.

      P-2, Q-1, R-3

    4. D.

      P-3, Q-2, R-1

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a matching question identifying the components of the Ridge closed-form solution.

    Step 1: is the Gram matrix. Adding makes it the regularized Gram matrix. So P matches 2.

    Step 2: represents the dot products of features with the target, which is the cross-covariance vector. So Q matches 3.

    Step 3: The inverse of the regularized Gram matrix is . So R matches 1.

    Answer: P-2, Q-3, R-1

    Question 4 · Chapter 2 — Supervised Learning MCQ

    Consider a 1D dataset with two points: with label , and with label . We train a soft-margin Support Vector Machine by minimizing the primal objective:

    subject to and . Let be the optimal weight for a given penalty parameter . What is the value of ?

    1. A.

      2.5

    2. B.

      4.0

    3. C.

      6.0

    4. D.

      12.0

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The dual formulation for this symmetric 1D dataset simplifies to a single-variable quadratic, and the optimal weight is directly equal to the dual variable .

    Step 1: Formulate the dual objective.

    The dual is subject to and .

    The constraint implies .

    Step 2: Substitute into the dual objective.

    , , .

    Objective: .

    Step 3: Find the unconstrained maximum.

    Derivative: .

    Since , the optimal dual variable is .

    Step 4: Compute the optimal weight .

    .

    So .

    Step 5: Evaluate the sum.

    , , .

    Sum = .

    Answer: 4.0

    Question 5 · Chapter 2 — Unit 1 — Machine Learning MCQ

    Consider the ridge regression objective

    with , , , and . Starting from , perform one step of gradient descent with learning rate . What is the value of ?

    1. A.

      1.10

    2. B.

      1.20

    3. C.

      1.40

    4. D.

      1.60

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a gradient descent update on a ridge regression objective. The gradient has two components: the data-fitting term and the regularization term. Both must be included with correct coefficients.

    Step 1: Write the objective clearly.

    Step 2: Compute the gradient with respect to .

    Step 3: Substitute the given values , , .

    Step 4: Evaluate the gradient at .

    Step 5: Perform the gradient descent update.

    Answer: 1.20

    Question 6 · Linear Classifiers, Discriminant Analysis and Margin-Based Methods MCQ

    A hard-margin SVM is trained on a linearly separable dataset. The optimal weight vector is parallel to . Two support vectors are with and with .

    What is the value of the primal objective function at the optimum?

    1. A.

      50

    2. B.

      25

    3. C.

      12.5

    4. D.

      100

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a hard-margin SVM primal optimization question, recognizable because it asks for the objective value given support vector constraints.

    Step 1: Since is parallel to , let for some scalar .

    Step 2: Use the support vector constraint .

    For , :

    ... (i)

    For , :

    ... (ii)

    Step 3: Solve the system.

    Subtract (ii) from (i):

    Step 4: Compute and the objective.

    Objective

    Answer: A

    Question 7 · Chapter 3 — Supervised Learning NAT

    Consider a hard-margin SVM trained on the dataset: with label , with label , and with label . A student claims that all points in a linearly separable dataset must be support vectors if they are not strictly inside the convex hull of their class. This is a contradiction because points can lie outside the margin without being support vectors. What is the minimum number of support vectors this SVM can have?

    Correct Answer:

    2.00

    Step-by-Step Solution

    Key idea: This is a hard-margin SVM question testing the KKT conditions. The key observation is that a point is a support vector if and only if its dual variable . We can find the optimal by maximizing the dual objective.

    Step 1: The dual objective for hard-margin SVM is to maximize subject to and .

    Step 2: Compute the dot products:

    , , .

    , , .

    , , .

    Step 3: The constraint gives .

    Step 4: Substitute into :

    Simplifying the quadratic form:

    .

    So .

    Step 5: Maximize by setting partial derivatives to zero:

    .

    .

    Step 6: Solve the system:

    Subtracting the second from the first: .

    Then .

    And .

    Step 7: The optimal dual variables are .

    Since , is NOT a support vector.

    Since and , and are support vectors.

    The minimum number of support vectors is 2.

    Answer: 2.00

    Question 8 · Chapter 3 — Unit 1 — Machine Learning NAT

    Consider a hard-margin Support Vector Machine trained on a binary classification dataset of points in , with at least one point in each class. All points lie on the unit sphere, i.e., for all . The SVM is trained without a bias term, so the decision boundary passes through the origin. What is the maximum possible value of the margin ?

    Correct Answer:

    2.00

    Step-by-Step Solution

    Key idea: This is an optimization question with geometric constraints. To maximize the margin , we must minimize . The constraints of the SVM combined with the unit sphere condition provide a lower bound on via the Cauchy-Schwarz inequality.

    Step 1: The hard-margin SVM without a bias term solves subject to for all .

    Step 2: The margin is defined as . Maximizing is equivalent to minimizing .

    Step 3: From the constraints, we have for all .

    Step 4: Since , we have . By the Cauchy-Schwarz inequality, .

    Step 5: We are given that all points lie on the unit sphere, so . Thus, .

    Step 6: Combining the inequalities, we get , which implies .

    Step 7: Therefore, the margin .

    Step 8: This maximum margin of 2 is achievable when all positive points are at some unit vector and all negative points are at , with .

    Answer: 2.00