Quiz Space

Machine Learning Practice · End Term · 30 Apr 2023 · January 2023 term · Set QPD1-S1

Question 21: Consider the following code block with respect to some d…

Question 21

+2 marksOne or more correct options

Consider the following code block with respect to some dataset contained in X and y.

python
from sklearn.linear_model import linear_regression
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import ShuffleSplit
lin_reg = linear_regression()
shuffle_split = ShuffleSplit(n_splits=5, test_size=0.2, random_state=42)
score = cross_val_score(lin_reg, X, y, cv=shuffle_split,
scoring='-----------------------')

Which of the following may be appropriate to be filled in the blank space?

Select all that apply.

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

Correct answers

  • A
  • D

Question 21 of 36 in the IIT Madras BS Machine Learning Practice (MLP) End Term paper sat on 30 Apr 2023, in the January 2023 term (IIT M DIPLOMA ET1 EXAM QPD1 S2 30 Apr 2023). It carries 2 marks.

More questions from this paper

  1. Q1To load datasets from openml.org, which method will be appropriate?
  2. Q2Why is data preprocessing necessary?
  3. Q3Consider the following code block:
  4. Q4Which of the following sklearn classes will be the most suitable for examining the effect of the number of samples on t…
  5. Q5Which of the following is not a hyper parameter?
  6. Q6Consider following two statements:\ Statement 1: The multinomial Naive Bayes classifier is suitable for classification …
  7. Q7Given below code to load a huge file name as filename.csv and this file is not loading at once in the system which para…
  8. Q8Which of the following is true for a hard margin SVM algorithm ?
  9. Q9What will the output for below code
  10. Q10Which of the following APIs can be used to construct an ML pipeline that has numerical and categorical features both? C…
  11. Q11Consider the following preprocessing steps:\ Read the data from a file (named ‘dataset.csv’). It has 4 columns, with fo…
  12. Q12Consider the following code block: What are the most suitable values to be filled in the two blank spaces (in that orde…
  13. Q13What will be the output of the following code?:
  14. Q14Consider following model: Which of the following code snippets will plot the learning curve for training for 100 epochs…
  15. Q15If we need quick results during the testing phase, then which classification techniques may not be appropriate?
  16. Q16Following is the code to tune the degree parameter of a polynomial regression model.
  17. Q17The following code produces an output of 0.9125. How is the output expected to change if we increase the max_depth valu…
  18. Q18Consider the following code. How many DecisionTreeClassifier models will be trained internally?
  19. Q19Consider two classifiers as shown in the following block of code: What can we say about the depths of the classifiers c…
  20. Q20Consider the following code:
  21. Q22Which of the following models are inherently multiclass models?
  22. Q23Which of the following is/are correct regarding Radius Neighbors Classifier
  23. Q24Which options are correct for large datasets that don’t fit into the system’s main memory?
  24. Q25Which of the following class(es) is/are used to instantiate a neural network in Sklearn.
  25. Q26Which of the following is correct?
  26. Q27Which of the following processes should be done if we get an imbalanced dataset? Data is imbalanced when the target cla…
  27. Q28Which of the following is true about Naive Bayes algorithm ?
  28. Q29Figure question
  29. Q30Which options are correct for Support Vectors in SVM ?
  30. Q31Consider the following block of code: In which of the following scenarios, the split will be done at node N?
  31. Q32Suppose we want to choose the best value of k in k−means clustering algorithm using Silhouette Coefficient values. Whic…
  32. Q33Which of the following approach(es) is(are) helpful to find a good value for k in k−means clustering algorithm?
  33. Q34The following line of code create a neural network (assume necessary imports)
  34. Q35What will be the output of the following code?:
  35. Q36The plot below shows a distribution of 200 samples with 2 features in Euclidean space. Suppose we use the K-means clust…