Quiz Space

Machine Learning Practice Quiz 2: 4 August 2024 (May 2024 term)

Question 1

+3 marksOne correct option

Given the following code for Polynomial Regression:

python
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import LinearRegression
import numpy as np
X = np.array([1, 2, 3, 4, 5]).reshape(-1, 1)
y = np.array([1, 4, 9, 16, 25])
poly = PolynomialFeatures(degree=2,interaction_only=False)
X_poly = poly.fit_transform(X)
model = LinearRegression()
model.fit(X_poly, y)
print(model.coef_)

What are the coefficients of the model?

  1. A

    [0, 1, 1]

  2. B

    [0, 2, 1]

  3. C

    [0, 0, 1]

  4. D

    [0, 0, 2]

Question 2

+3 marksOne correct option

What is ‘naive’ assumption in classifiers based on Naive Bayes?

  1. A

    All the classes are conditionally independent of each other.

  2. B

    All the classes are conditionally dependent on each other.

  3. C

    All the features are conditionally dependent on each other.

  4. D

    All the features are conditionally independent of each other.

Question 3

+3 marksOne correct option
  1. A

    cv

  2. B

    reg_rate

  3. C

    alpha

  4. D

    tol

  5. E

    lambda

  6. F

    None of these

19 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 2 4 Aug 2024 paper

The IIT Madras BS Machine Learning Practice (MLP) Quiz 2 paper sat on 4 Aug 2024, in the May 2024 term: 22 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 2 4 Aug 2024 at a glance
TermMay 2024 term
SubjectMachine Learning Practice
Course codeBSCS2008
Questions22
Marks50
Duration120 min
MCQ16
Numerical3
MSQ3
Official paperIIT M DIPLOMA AN EXAM QDD2 4 Aug 2024
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More MLP