QUIZ
Other classifiers
5 questions on Other classifiers, from 4 lessons. Pick an answer in your head, then open it.
On the roadmap for: ML Engineering, Data Science.
Question 1 of 5
Of all the lines that separate two classes, which does a support vector machine pick?
- A. The first line the algorithm finds
- B. A random line among the ones that work
- C. The one with the widest margin to each class
- D. The one through the origin, so it needs no bias term
View answer
✓ C. The one with the widest margin to each class
A wide margin generalises better; only the closest points, the support vectors, decide it.
Lesson: Support Vector Machines
Question 2 of 5
What does the kernel trick let an SVM do?
- A. Draw non-linear boundaries without building the space
- B. Train faster on data that's already linearly separable
- C. Handle missing values in the features automatically
- D. Remove the margin so more points can fit inside it
View answer
✓ A. Draw non-linear boundaries without building the space
Kernels such as the RBF kernel give curved boundaries at the cost of a linear model.
Lesson: Support Vector Machines
Question 3 of 5
When does k-nearest neighbours tend to fail?
- A. With many or unscaled features; slow to predict
- B. Never: it works equally well on any kind of data
- C. When the classes are evenly balanced in the data
- D. With small datasets of only a few hundred rows
View answer
✓ A. With many or unscaled features; slow to predict
In high dimensions all points look roughly equally far apart. Scale features and reduce dimensions.
Lesson: k-Nearest Neighbours
Question 4 of 5
Naive Bayes' independence assumption is almost always wrong. Why does it still classify well?
- A. The independence assumption isn't actually wrong for text data
- B. It ignores the data and uses priors only
- C. Classifying only needs the right class to score highest
- D. It uses deep learning under the hood
View answer
✓ C. Classifying only needs the right class to score highest
Its probabilities are often over-confident, but the ranking of classes is frequently correct.
Lesson: Naive Bayes
Question 5 of 5
What is the difference between LDA and QDA?
- A. There's no real difference between them
- B. LDA is built from decision trees
- C. QDA is unsupervised, while LDA needs labels for training
- D. LDA: one shared covariance; QDA: one per class
View answer
✓ D. LDA: one shared covariance; QDA: one per class
QDA is more flexible but needs more data to estimate each covariance.