Explain KNN Algorithm?

Suresh Anugam
Suresh Anugam

Posted On: Apr 02, 2020

 

KNN is a supervised algorithm used for both classification and regression. It uses labeled data to model a function to produce an output from the unlabeled data. It uses the Euclidean distance formula to calculate the distance between the data points for classification or prediction. It works on the principle that similar data points must be close to each other so it uses the distance to calculate the similar points that are close to each other.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Basic Machine Learning Interview Questions

    What is machine learning?

    Machine learning is the use of algorithms and data to perform specific tasks. ML is the process of giving the system the ability to learn from data using certain sophisticated algorithms. With the alg...

    Basic Machine Learning Interview Questions

    What supervised and unsupervised machine learning?

    Supervised and unsupervised are the two types of Machine learning algorithms available. In the supervised type, the algorithms are applied to the known labeled data to formulate a model. Labeled data...

    Basic Machine Learning Interview Questions

    What is ROC curve?

    ROC curve is a graphical plot to illustrate the ability of a classifier system. Basically, this curve tells you how much a binary classifier system is capable of distinguishing between classes. This c...