How it works...

In this recipe, we showed how simple it is to build a classifier. We started from a series of identifying pairs of as many points on a plane (x, y). We therefore assigned a class to each of these points (0,1) so as to divide them into two groups. To understand the spatial arrangement of these points, we visualized them by associating a different marker to each class. Finally, to divide the two groups, we have drew the line of the y = x equation.