This chapter will focus on nearest-neighbor methods, and how to implement them in TensorFlow. We will start with an introduction to the methods, and we will illustrate how to implement various forms. The chapter will end with examples of address matching and image recognition.
In this chapter, we will cover the following:
- 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 of the latest code is available at: https://github.com/nfmcclure/tensorflow_cookbook and at the Packt repository: https://github.com/PacktPublishing/TensorFlow-Machine-Learning-Cookbook-Second-Edition.