Quiz Space

Machine Learning Practice · End Term · 10 May 2026 · January 2026 term

Question 15: Analyze the following code snippet: Which of the followi…

Question 15

+3 marksOne or more correct options

Analyze the following code snippet:

Which of the following statements are correct?

Analyze the following code snippet:

Select all that apply.

  1. A

    mlp2 has more trainable parameters than mlp1.

  2. B

    Changing random_state may change predictions even with the same dataset.

  3. C

    Using 'sgd' solver always gives higher accuracy than 'adam'.

  4. D

    'tanh' activation guarantees better performance than 'relu'.

Show answer

Correct answers

  • A

    mlp2 has more trainable parameters than mlp1.

  • B

    Changing random_state may change predictions even with the same dataset.

Question 15 of 26 in the IIT Madras BS Machine Learning Practice (MLP) End Term paper sat on 10 May 2026, in the January 2026 term (Machine Learning Practice 06 May 26). It carries 3 marks.

More questions from this paper

  1. Q1Which variant of the Naive Bayes Classifier will be most suitable to predict the Gender in the given dataset?
  2. Q2Consider the following time series analysis code: In the above code, what is the primary role of the parameter d=1 in o…
  3. Q3In the following question, an Assertion (A) is followed by a Reason (R). Choose the correct option from the choices giv…
  4. Q4Consider the following code snippet: Which employees are included in filtered_df?
  5. Q5What is the output of the following code? (Enter upto 2 decimals)
  6. Q6Consider the following adaboost models: Which of the following statements are MOST accurate?
  7. Q7Consider the following code snippet: Which of the following statements are true?
  8. Q8Consider the following Python code snippet used for basic image processing and answer the question that follows: Which …
  9. Q9Identify which of the following lines (marked in comments) contain errors in the given code snippet:
  10. Q10Consider the following code snippet: What is the predicted class for the test datapoint?
  11. Q11Consider the following code snippet and answer the question that follows: Enter the value obtained as output
  12. Q12Consider the following lists containing the true values and the predicted values. Calculate the f1_score for class 1. (…
  13. Q13Consider the following code snippet for a multi-class classification problem with three classes: 0, 1, and 2. The groun…
  14. Q14Which of the following transformations are commonly used as Data Augmentation techniques?
  15. Q16Which of the following statements regarding Tfidf Vectorizer is true?
  16. Q17Consider the following code snippet: Identify the correct code snippet/s to retrive only employees from departments whe…
  17. Q18Select all the false statements amongst the given statements:
  18. Q19Which of the following implementations of LogisticRgression cannot be used to tackle multinomial multiclass problems?
  19. Q20What is the range of the metric that is being calculated by the following code snippet?
  20. Q21Consider the following cross validation strategy: What does the above mentioned cross val strategy do?
  21. Q22Consider the given 2 different lasso regression models trained on the same dataset: Statements: 1. The coefficients of …
  22. Q23What is the sum of all values of the first column of ? (Round off to two decimal places)
  23. Q24What is the output obtained while running ?
  24. Q25We create the following ml pipeline: Which of the following statements is true?
  25. Q26Consider the following dataset X with 6 samples and 3 features and answer the given subquestions.