Quiz Space

Machine Learning Practice · Quiz 1 · 26 Feb 2023 · January 2023 term

Question 13: Consider following dataset: Which one of the following c…

Question 13

+3 marksOne correct option

Consider following dataset:

Which one of the following code snippets will correctly preprocess above data? Assume necessary imports. The data is stored in a dataframe named X.

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

Correct answer

  • A

Question 13 of 23 in the IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 26 Feb 2023, in the January 2023 term (IIT M DIPLOMA AN2 EXAM QPD2 26 Feb 2023). It carries 3 marks.

More questions from this paper

  1. Q1[String Matching] Enter the sequence of steps to be followed, in general, in end to end machine learning project. Enter…
  2. Q2Which of the following APIs can be used to construct an ML pipeline for data preprocessing and modeling?
  3. Q3Consider following data: Which one of the following APIs can be used to extract features from the above data?
  4. Q4Consider following data: \mathbf{X} = \begin{bmatrix} 8 & 3 \ np.nan & 8 \ 3 & np.nan \ 10 & 6 \ 7 & 7 \end{bmatrix} Wh…
  5. Q5Suppose that we load a data set that contains 1000 samples in a Pandas Dataframe. Each sample has 30 features. However,…
  6. Q6The statement that each feature in the input data set has a (physical) meaning associated with it is
  7. Q7A company collects 40000 samples (examples) to build a Machine Learning model for an application. They decide to use 30…
  8. Q8Which of the following utilities of sklearn.datasets helps us to get the realworld data from the internet?
  9. Q9Consider the following ML task/steps for a regression dataset:\ Read the data from a file (named ‘dataset.csv’). It has…
  10. Q10Consider the following code where X_train, y_train is the training data. X_test, y_test is the test data. Which evaluat…
  11. Q11How to make SGDRegressor stop after 1000 epochs?
  12. Q12Suppose we want to transform features in a dataset using polynomial transformation. The sklearn API provides the functi…
  13. Q14For a dataset with 1000 data points and 100 features, the following code will generate how many models during execution…
  14. Q15Consider the following cross-validation strategy: Assume we apply this strategy to some data set. Which of the followin…
  15. Q16Which of the following code is correct if we want the mean absolute error to be minimized during the computation of cro…
  16. Q17We know that applying polynomial transformation to the samples is often helpful. Assume we imported all the required mo…
  17. Q18A team has built a dataset for a regression problem. It contains 1000 samples. Each sample x is of size 2. All the feat…
  18. Q19Consider a regression problem with L2 regularization. Suppose we instantiate the model as shown below, What is the rang…
  19. Q20(Multiple Select) Consider a data set shown below. The data set was loaded using Pandas and stored in the variable ‘dat…
  20. Q21(MSQ) Suppose that we plot the histogram of numerical features in a data set. This reveals which of the following infor…
  21. Q22Why is data preprocessing necessary?
  22. Q23[MSQ] Which of the following will produce constantly reducing learning rates?