Question 1
The highest score for each student.
A list of subjects sorted by their average scores.
The average score of each student across all subjects.
A DataFrame with the scores of all students for each subject.
The highest score for each student.
A list of subjects sorted by their average scores.
The average score of each student across all subjects.
A DataFrame with the scores of all students for each subject.
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:
Which of the following represents the MOST appropriate sequence for preparing the data for a machine learning model?
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?
You utilize ‘fit_transform’ on ‘train_data’ and then ‘transform’ on ‘test_data’ using the ‘ColumnTransformer’.
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’.
You first apply ‘fit’ on the ‘test_data’ and then ‘transform’ on ‘train_data’ using the ‘ColumnTransformer’.
Before using ‘ColumnTransformer’, you independently apply ‘fit_transform’ to ‘train_data’ for both ‘StandardScaler’ and ‘OneHotEncoder’.
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.
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.
| Feature | MLP Quiz 1 29 Oct 2023 at a glance |
|---|---|
| Term | September 2023 term |
| Subject | Machine Learning Practice |
| Course code | BSCS2008 |
| Questions | 23 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 14 |
| MSQ | 4 |
| Numerical | 5 |
| Official paper | IIT M DIPLOMA AN2 EXAM QPD2 29 Oct 2023 |
| Negative marking | No negative marking. |
| Updated |