Quiz Space

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

Question 12: Suppose you have a trained stochastic gradient regressor…

Question 12

+2 marksOne correct option

Suppose you have a trained stochastic gradient regressor model by enabling warm start parameter. What happens if you call the fit method again with the same model instance and different training data?

python
from sklearn.linear_model import SGDRegressor
model = SGDRegressor(warm_start=True)
X_train = [[0, 0], [1, 1]]
y_train = [0, 1]
model.fit(X_train, y_train)
# Call fit() again with different training data
X_train_new = [[2, 2], [3, 3]]
y_train_new = [2, 3]
model.fit(X_train_new, y_train_new)
  1. A

    The new training data is ignored, and the model continues training from the previously learned weights.

  2. B

    The new training data is used to update the model weights, but the previous weights are discarded.

  3. C

    An error is raised, indicating that the model has already been trained.

  4. D

    The model weights are reset, and the model begins training again from scratch.

Show answer

Correct answer

  • B

    The new training data is used to update the model weights, but the previous weights are discarded.

Question 12 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. Q3Consider a regression dataset, the features are "Temperature" and "Humidity", and the label is "Precipitation" (i.e. ra…
  4. Q4Which of the following options is/are correct?
  5. Q5Figure question
  6. Q6For the below code which option will provide the samples(rows) containing outliers according to the standard Boxplot in…
  7. Q7What will be the output of the following code snippet ?
  8. Q8What will be the output of the following code ?
  9. Q9Which of the following is(are) true statements?\ Statement 1: A dataset is splitted into the train set and the test set…
  10. Q10Figure question
  11. Q11Consider the following code: Which metrics will be contained in score1 and score2 respectively?
  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?