Quiz Space

Machine Learning Practice Quiz 1: 16 July 2023 (May 2023 term)

Question 1

+2 marksOne or more correct options

Which of the following things can be observed from a Histogram ?

Select all that apply.

  1. A

    The range of scale of a numerical feature in the data

  2. B

    The distribution of a numerical feature in the data

  3. C

    The null values present in a feature of the data

  4. D

    The correlation between features and labels in the data

Question 2

+2 marksOne or more correct options

Which of the following are use cases of ColumnTransformer?

Select all that apply.

  1. A

    Data has some numerical and some categorical features.

  2. B

    Data has only categorical features and all of them are nominal.

  3. C

    Data has only categorical features, however, some features are ordinal and some are nominal.

  4. D

    Data has only numerical features, and all of them are uniformly distributed in range of 0 and 1 (both inclusive).

Question 3

+2 marksOne or more correct options

Consider a regression dataset, the features are "Temperature" and "Humidity", and the label is "Precipitation" (i.e. rain fall in centimeter), both the features are numerical and there are no missing values in the dataset. Following code snippet trains a simple model on this dataset, assume necessary imports:

python
data = pd.read_csv('dataset.csv')
X = data[data.columns[:-1]]
y = data[data.columns[-1]]
X_train, X_test, y_train, y_test = train_test_split(X, y,
test_size = 0.8)
mms = MinMaxScaler()
X_train['Temperature'] = mms.fit_transform(X_train['Temperature'])
X_train['Humidity'] = mms.fit_transform(X_train['Humidity'])
X_test['Temperature'] = mms.fit_transform(X_test['Temperature'])
X_test['Humidity'] = mms.fit_transform(X_test['Humidity'])
lr = LinearRegression().fit(X_train,y_train)

Choose the correct statements from the options:

Select all that apply.

  1. A

    The training set will have 20% of the data, which is a good practice.

  2. B

    The training set size is smaller than test set size.

  3. C

    The train and test samples are not scaled appropriately.

  4. D

    One of the fundamental assumption of Machine Learning, which is, training and test data belong to same distribution, is not upheld.

21 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 16 Jul 2023 paper

The IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 16 Jul 2023, in the May 2023 term: 24 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 16 Jul 2023 at a glance
TermMay 2023 term
SubjectMachine Learning Practice
Course codeBSCS2008
Questions24
Marks50
Duration120 min
MSQ8
MCQ16
Official paperIIT M DIPLOMA AN2 EXAM QPD2 16 JULY 2023
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More MLP