No student devices needed. Know more
10 questions
In K-NN, is the query time longer than the training time?
Yes
No
James is trying to decide which machine learning algorithm to use for his project. Which of the following options is true about the k-NN algorithm?
It can only be used for classification
It can only be used for regression
It can be used for both classification and regression
Which of the following is true about Manhattan distances?
It can be used for continuous variables
It can be used for categorical variables
It can be used for categorical as well as continuous variables
Poppy is working on a machine learning project using k-NN and has a dataset with a lot of noise. What are the appropriate things to do with k-NN in this situation?
Increase the value of K
Decrease the value of K
K does not depend on the noise
None of these
In K-NN, what is the effect of increasing/decreasing the value of K?
The boundary becomes smoother with increasing values of K
Smoothness of the boundary does not depend on the value of K
The boundary becomes smoother with decreasing values of K
None of these
For embedded applications (i.e. running on a smartphone), what is the most appropriate family of algorithm?
Eager learners
Lazy learners
Given d the distance between a point of the dataset and the query point, which of the following weight functions is appropriate for Distance-Weighted k-NN?
w = exp( -d )
w = log ( min ( 0.25 * d, 1 ) )
w = -d
Which of the following statements is true for k-NN classifiers?
The classification accuracy is better with larger values of k
The decision boundary is linear
The decision boundary is smoother with smaller values of k
k-NN does not require an explicit training step
The curse of dimensionality only affects k-NN?
True
False
Benjamin is using k-NN to classify types of flowers based on petal measurements. How does the choice of distance metric affect the performance of k-NN?
It does not affect the performance
It affects the accuracy of the model
It only affects the speed of the algorithm
It affects both accuracy and speed
Explore all questions with a free account