![Network, Web, Digital, Computer Science, Computer](https://cdn.pixabay.com/photo/2020/04/30/17/52/network-5113928_960_720.jpg)
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 |