Quiz Space

MLP Quiz 1: 29 October 2023 (September 2023 term)

Question 1

+2 marksOne correct option
  1. A

    The highest score for each student.

  2. B

    A list of subjects sorted by their average scores.

  3. C

    The average score of each student across all subjects.

  4. D

    A DataFrame with the scores of all students for each subject.

Question 2

+2 marksOne correct option

You are working on a machine learning project and have received a dataset containing numeric and categorical features. The dataset has some missing values and potential outliers. Given the following data cleaning steps:

  1. Use One-Hot Encoding for categorical variables.
  2. Impute missing values with feature’s mean for numeric features.
  3. Remove duplicates.
  4. Standardize numeric features using Z-score normalization.
  5. Identify and handle outliers using the IQR method.

Which of the following represents the MOST appropriate sequence for preparing the data for a machine learning model?

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

Question 3

+2 marksOne correct option

You’re working with a dataset that consists of training data (‘train_data’) and test data (‘test_data’). The dataset contains both numerical and categorical features. You decide to employ a combination of ‘StandardScaler’ (for numerical columns) and ‘OneHotEncoder’ (for categorical columns) from ‘scikit-learn’ using the ‘ColumnTransformer’ utility. Which of the following actions is MOST likely to introduce data leakage or potential modeling issues?

  1. A

    You utilize ‘fit_transform’ on ‘train_data’ and then ‘transform’ on ‘test_data’ using the ‘ColumnTransformer’.

  2. B

    After observing a new category in the test data that was not present in the training data, you set the ‘handle_unknown’ parameter to ’ignore’ in ‘OneHotEncoder’.

  3. C

    You first apply ‘fit’ on the ‘test_data’ and then ‘transform’ on ‘train_data’ using the ‘ColumnTransformer’.

  4. D

    Before using ‘ColumnTransformer’, you independently apply ‘fit_transform’ to ‘train_data’ for both ‘StandardScaler’ and ‘OneHotEncoder’.

20 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the MLP Quiz 1 29 Oct 2023 paper

The IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 29 Oct 2023, in the September 2023 term: 23 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureMLP Quiz 1 29 Oct 2023 at a glance
TermSeptember 2023 term
SubjectMachine Learning Practice
Course codeBSCS2008
Questions23
Marks50
Duration120 min
MCQ14
MSQ4
Numerical5
Official paperIIT M DIPLOMA AN2 EXAM QPD2 29 Oct 2023
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More MLP