best attempt at nearest neighbor

Close, but not quite finished. Got a neighbor from the test data for each item in the training data, but need to then predict a label. Unsure of accuracy of the other work, as a certain value seemed to crop up more often than made sense.
So at this point, you should have calculated a point in the training data that is most similar to each point in the test data. Now your job is to predict a label for each point in the test data. To make the prediction, simply pull the label from that closest point in the training data. In fact, you could do this somewhere in your code above, rather than in a helper function. Perhaps look up the label (from the training data) when building either temp_distances or distances.