Skip to main content

IMPLEMENTATION OF KNN CLASSIFIER

Network, Web, Digital, Computer Science, Computer

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





Popular posts from this blog

Example problem on simple linear regression

1.      Consider the following farmer dataset.   Number of pounds per acre (in hundreds) Bushels per acre X y 1.0 25 2.5 32 3.0 35 3.0 32 ...

KNN CLASSIFIER

DA2 ML VITOL PART3   A B C D Output Some High False French Yes Full Low False Thai No S...