Given enough computation time and computational resources, we could have made the test and training sets bigger. This probably would have increased our accuracy, and is also a common way to prevent overfitting. Also, note that this algorithm warrants further exploration on the ideal k value to choose. The k value can be chosen after a set of cross-validation experiments on the dataset.
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.