MACHINE LEARNING

APPLICATION OF SUPERVISED LEARNING

SUPERVISED LEARNING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following options is true about KNN algorithm?
A
It can be used for classification
B
It can be used for regression
C
It can be used in both classification and regression
D
None of these
Explanation: 

Detailed explanation-1: -4) Which of the following option is true about k-NN algorithm? We can also use k-NN for regression problems. In this case the prediction can be based on the mean or the median of the k-most similar instances.

Detailed explanation-2: -As we saw above, the KNN algorithm can be used for both classification and regression problems. The KNN algorithm uses ‘feature similarity’ to predict the values of any new data points. This means that the new point is assigned a value based on how closely it resembles the points in the training set.

Detailed explanation-3: -Yes, KNN can be used for regression problem statements. In other words, the KNN algorithm can be applied when the dependent variable is continuous. For regression problem statements, the predicted value is given by the average of the values of its k nearest neighbours.

Detailed explanation-4: -k-NN algorithm can be used for imputing missing value of both categorical and continuous variables.

There is 1 question to complete.