Docsity

Classification Problem Solutions: Linearly Separable vs. Non-Linearly Separable, Study notes of Computer Science

Toggle sidebar
bg1
Figure 1: The first classification problem.
Figure 2: The second classification problem.
Classification practice problems: Solutions
The first classification problem is linearly separable: you can draw a line such
that all of the circles are on one side and all of the squares are on the other. Thus,
perceptrons would work fine on this problem. The more advanced SVMs and
neural networks should also work fine. kNN would also work well, as all instances
of each class are tightly clustered together and far away from the other class.
Decision trees and boosting with decision stumps would work too. Maximum
likelihood would work very well – you could easily fit a Gaussian to each class.
HMMs make no sense, as they match through time.
The second classification problem is harder. SVMs are the obvious choice for
this problem, as in another space (such as a polar representation) this problem
1
pf2

Partial preview of the text

Download Classification Problem Solutions: Linearly Separable vs. Non-Linearly Separable and more Study notes Computer Science in PDF only on Docsity!

Figure 1: The first classification problem.

Figure 2: The second classification problem.

Classification practice problems: Solutions

The first classification problem is linearly separable: you can draw a line such that all of the circles are on one side and all of the squares are on the other. Thus, perceptrons would work fine on this problem. The more advanced SVMs and neural networks should also work fine. kNN would also work well, as all instances of each class are tightly clustered together and far away from the other class. Decision trees and boosting with decision stumps would work too. Maximum likelihood would work very well – you could easily fit a Gaussian to each class. HMMs make no sense, as they match through time. The second classification problem is harder. SVMs are the obvious choice for this problem, as in another space (such as a polar representation) this problem

would become linearly separable, as one class if fully surrounded by the other. In the X,Y space perceptrons would not work as the classes are not linearly separable. Decision trees would also probably over-fit the data and not generalize well in the X,Y space. (If you provided a feature called ”distance from center” then decision trees, and in fact all of these techniques, would do well.) kNN would do okay for query points near the center or outside of the shown region, but would have trouble at the borders. Neural networks could learn this in principle, as a sufficiently sized one-hidden layer nnet can learn any continuous function. Boosting with decision stumps would probably be satisfactory, but not a great choice, as it would take a lot of differently-weighted vertical and horizontal lines (if you only allow decisions on the X,Y features) to separate the two classes. Maximum likelihood would not work well for this situation. Where could you fit Gaussians to separate these classes? Perhaps you could fit some other distribution, but this is not a very good choice. HMMs make no sense, as they match through time.