Question 1
What will be the output of the following code:
What will be the output of the following code:
What will be the numerical value in the output array of the following code:
import numpy as npfrom sklearn.preprocessing import StandardScalerfrom sklearn.impute import SimpleImputerfrom 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_)Given below a y_train list which consists of coffee order’s preference by the customers in a cafe.
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 ?
from sklearn.preprocessing import MultiLabelBinarizermlb = MultiLabelBinarizer(classes=['cold', 'hot', 'large', 'small'])print(mlb.fit_transform(y_train))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) 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.
| Feature | MLP End Term 3 Sept 2023 Set QPD1-S1 at a glance |
|---|---|
| Term | May 2023 term |
| Subject | Machine Learning Practice |
| Course code | BSCS2008 |
| Questions | 34 |
| Marks | 100 |
| Duration | 180 min |
| Numerical | 6 |
| MCQ | 23 |
| MSQ | 5 |
| Official paper | IIT M DIPLOMA ET1 EXAM QPD1 S2 03 Sep |
| Negative marking | No negative marking. |
| Updated |