MACHINE LEARNING

APPLICATION OF SUPERVISED LEARNING

MACHINE LEARNINGHARD QUESTIONS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How to choose the value of K in KNN?
A
Take the square root of the total data point available in the dataset.
B
Take the mean of the total data point available in the dataset.
C
Take the variance of the total data point available in the dataset.
D
Take the standard deviation of the total data point available in the dataset.
Explanation: 

Detailed explanation-1: -The value of k in the KNN algorithm is related to the error rate of the model. A small value of k could lead to overfitting as well as a big value of k can lead to underfitting. Overfitting imply that the model is well on the training data but has poor performance when new data is coming.

Detailed explanation-2: -Calculate the distance between test data and each row of training dataset. Sort the calculated distances in ascending order based on distance values. Get top k rows from the sorted array. Get the most frequent class of these rows. Return the predicted class. 26-Mar-2018

There is 1 question to complete.