Page 35 - Data Science Algorithms in a Week
P. 35
Classification Using K Nearest Neighbors
Text classification - k-NN in higher-
dimensions
Suppose we are given documents and we would like to classify other documents based on
their word frequency counts. For example, the 120 most frequent words for the Project
Gutenberg e-book of the King James Bible are as follows:
[ 23 ]