Quiz Space

Machine Learning Practice · Quiz 2 · 6 Aug 2023 · May 2023 term

Question 12: Consider below code which of the following option is tru…

Question 12

+2 marksOne correct option

Consider below code which of the following option is true for that

python
from sklearn.neighbors import NearestNeighbors
neigh = NearestNeighbors(n_neighbors=4)
neigh.fit(X_train)
print(neigh.kneighbors(X_test[0:1]))

Assume X_train and X_test are of type numpy.ndarray.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 12 of 23 in the IIT Madras BS Machine Learning Practice (MLP) Quiz 2 paper sat on 6 Aug 2023, in the May 2023 term (IIT M DIPLOMA AN2 EXAM QPD2 06 Aug 2023). It carries 2 marks.

More questions from this paper

  1. Q1Consider the following code and its output: Code: Output: What will be the output of the following code? Enter your ans…
  2. Q2Figure question
  3. Q3What will be the output of the following code ?
  4. Q4What will be the output of the following code?
  5. Q5Figure question
  6. Q6Your task to design a model that can predict label of an article, in order to help an online news website. The labels c…
  7. Q7How does strong correlation between features given the labels impact the classification performance in Naive Bayes?
  8. Q8When might the Precision-Recall curve be more informative than the ROC curve?
  9. Q9Figure question
  10. Q10Which of the following parameters learned by the KNN(KNeighborRegressor) model while training?
  11. Q11Figure question
  12. Q13Which of these may NOT help in handling overfitting in decision trees?
  13. Q14Figure question
  14. Q15Figure question
  15. Q16Figure question
  16. Q17Which of the following is correct?
  17. Q18Which of the following option is true?
  18. Q19Figure question
  19. Q20What will be the output of the following code:
  20. Q21Consider the following code. How many different parameter combinations will be tried in GridSearchCV?
  21. Q22Which of the following is the most expected output for the code given below:
  22. Q23Consider the following block of code: In which of the following scenarios, the split will be done at a node N?