Quiz Space

MLP End Term: 3 September 2023, Set QPD1-S1 (May 2023 term)

Question 1

+2 marksNumerical answer

What will be the output of the following code:

Question 2

+2 marksNumerical answer

What will be the numerical value in the output array of the following code:

python
import numpy as np
from sklearn.preprocessing import StandardScaler
from sklearn.impute import SimpleImputer
from sklearn.pipeline import Pipeline
X_train = [[1],[2],[3],[np.nan], [4], [np.nan], [5]]
pipe = Pipeline(steps = [('impute', SimpleImputer(strategy='mean')),
('scale', StandardScaler())])
pipe.fit(X_train)
print(pipe[0].statistics_)

Question 3

+2 marksOne correct option

Given below a y_train list which consists of coffee order’s preference by the customers in a cafe.

python
y_train = [['large', 'cold'],
['small', 'cold'],
['small', 'hot'],
['large', 'hot']]

MultiLabelBinarizer from sklearn library has been used to convert the y_train into numbers, so which of the following option matches with the output of the following code ?

python
from sklearn.preprocessing import MultiLabelBinarizer
mlb = MultiLabelBinarizer(classes=['cold', 'hot', 'large', 'small'])
print(mlb.fit_transform(y_train))
  1. A
  2. B
  3. C
  4. D

31 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 End Term 3 Sept 2023 Set QPD1-S1 paper

The IIT Madras BS Machine Learning Practice (MLP) End Term paper sat on 3 Sept 2023, in the May 2023 term, set QPD1-S1: 34 questions for 100 marks in 180 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 End Term 3 Sept 2023 Set QPD1-S1 at a glance
TermMay 2023 term
SubjectMachine Learning Practice
Course codeBSCS2008
Questions34
Marks100
Duration180 min
Numerical6
MCQ23
MSQ5
Official paperIIT M DIPLOMA ET1 EXAM QPD1 S2 03 Sep
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More MLP