Quiz Space

Machine Learning Practice · Quiz 1 · 16 Jul 2023 · May 2023 term

Question 3: Consider a regression dataset, the features are "Temperat…

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.

Show answer

Correct answers

  • B

    The training set size is smaller than test set size.

  • C

    The train and test samples are not scaled appropriately.

  • D

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

Question 3 of 24 in the IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 16 Jul 2023, in the May 2023 term (IIT M DIPLOMA AN2 EXAM QPD2 16 JULY 2023). It carries 2 marks.

More questions from this paper

  1. Q1Which of the following things can be observed from a Histogram ?
  2. Q2Which of the following are use cases of ColumnTransformer?
  3. Q4Which of the following options is/are correct?
  4. Q5Figure question
  5. Q6For the below code which option will provide the samples(rows) containing outliers according to the standard Boxplot in…
  6. Q7What will be the output of the following code snippet ?
  7. Q8What will be the output of the following code ?
  8. Q9Which of the following is(are) true statements?\ Statement 1: A dataset is splitted into the train set and the test set…
  9. Q10Figure question
  10. Q11Consider the following code: Which metrics will be contained in score1 and score2 respectively?
  11. Q12Suppose you have a trained stochastic gradient regressor model by enabling warm start parameter. What happens if you ca…
  12. Q13What is the purpose of the tol parameter in the fit method of the stochastic regressor?
  13. Q14Figure question
  14. Q15How many models with different combinations of parameter values will get trained in the following code?
  15. Q16Figure question
  16. Q17To see the distribution of the data along each numerical feature which of the following codes will show all the histogr…
  17. Q18Which of the following can affect performance of the Simple linear Regression while training the model?
  18. Q19Figure question
  19. Q20Consider the following code block: Which of the following may be appropriate to be filled in the blank space?
  20. Q21Which of the following are correct statements?
  21. Q22Figure question
  22. Q23Consider the following code: Which of the following may be the correct output of the above code?:
  23. Q24Consider the following code: Which of the following is more likely to be true?