April 2026
461 pages
17h 56m
English
We’ve now studied many elements of Python programming and are rapidly approaching the end of our first roller-coaster ride—the k-nearest neighbor classifier (k-NN).
Before you can implement this procedure, we need to explain what this method does and how it works. Classification means the division of objects into different categories or classes. Of course, you need object descriptions for this, which are specified in ML as an object’s characteristics. We use numbers as characteristics for better explanation. In Figure A.3, objects (e.g., squares and triangles) are described by two characteristics, namely numbers. The figures are plotted on the x-y axes. A point therefore represents ...
Read now
Unlock full access