This chapter will focus on nearest neighbor methods and how to implement them in TensorFlow. We will start with an introduction to the method and show how to implement various forms, and the chapter will end with examples of address matching and image recognition. This is what we will cover:
Working with Nearest Neighbors
Working with Text-Based Distances
Computing Mixed Distance Functions
Using an Address Matching Example
Using Nearest Neighbors for Image Recognition
Note that all the code is available online at https://github.com/nfmcclure/tensorflow_cookbook.