With the nearest-neighbors algorithm, the model is the training set. Because of this, we do not have to train any variables in our model. The only parameter, k, was determined via cross-validation, to minimize our MSE.
How it works...
Get TensorFlow Machine Learning Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.