Maths · Module 2Module material
Vectors interview questions
14 questions interviewers ask on this module’s topics, from first principles to the follow-ups. Each comes with a model answer.
- What is a vector in machine learning, and what is its dimension?
- What is the difference between shapes
(d,),(1, d)and(d, 1)in NumPy? - Name three norms and when you would use each.
- Why does lasso set weights to exactly zero and ridge does not?
- Why must features be scaled before k-nearest neighbours?
- What does the dot product tell you geometrically?
- When would you use cosine similarity instead of Euclidean distance?
- What is a projection, and where is it used?
- What does
w · x + b = 0describe, and what arewandb? - Is a larger score
w · x + ba larger distance from the boundary? - A linear classifier gets 14 of 16 on a small dataset. Could another line do better?
- What is the curse of dimensionality?
- Does having 64 features mean nearest neighbours will fail?
- Why do decision trees struggle with diagonal boundaries?