1. Predict the food type for tomato (A = 6 B = 4) with k=2
using the below the training data
set.
|
Ingredient |
A |
B |
Food Type |
|
Grape |
8 |
5 |
Fruit |
|
Beans |
3 |
7 |
Vegetable |
|
Nuts |
3 |
6 |
Protein |
|
Orange |
7 |
3 |
Fruit |
|
Banana |
6 |
3 |
Fruit |
|
Onion |
1 |
8 |
Vegetable |