A market stall sorts fruit by two measurements: weight in grams and a sweetness score.
The owner has a few fruits that are already labelled. Now some new fruits arrive with no label.
Task: write predict_fruit(train_rows, train_labels, new_rows).
train_rows is a list of rows, one inner list of numbers per fruit. train_labels holds the answer for each of those rows, in the same order.new_rows is a list of rows shaped the same way, but with no answers.KNeighborsClassifier with n_neighbors=3, let it learn from the labelled fruits, then ask it about the new ones.new_rows.