Which of the following option is true about k-NN algorithm?
Answers
Answered by
18
Answer:
KNN is a non-parametric, lazy learning algorithm. Its purpose is to use a database in which the data points are separated into several classes to predict the classification of a new sample point. Just for reference, this is “where” KNN is positioned in the algorithm list of scikit learn
Answered by
0
Which of the following option is true about the k-NN 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
The k-NN algorithm can be used in both classification and regression.
(option c)
- The k-NN algorithm is a classification algorithm and it is a widely used learning algorithm.
- Also referred to as a lazy learner, as it doesn't immediately learn from the provided data set, it stores them at first.
- When the time comes for classification, it begins its action.
- The K-NN algorithm doesn't take any parameters.
- The k-NN algorithm can be also used in regression problems.
- Based on the mean or median of the k most similar cases prediction is made.
#SPJ3
Similar questions