Quiz Space

Machine Learning Practice Quiz 1: 23 February 2025 (January 2025 term)

Question 1

+2 marksOne correct option

What is the primary risk of not performing a train-test split in a machine learning workflow?

  1. A

    The training time will increase.

  2. B

    The model might overfit the training data and perform poorly on new data.

  3. C

    The dataset may become unbalanced.

  4. D

    The model may fail to converge.

Question 2

+2 marksOne correct option

Why is data preprocessing necessary before using it for model building?

  1. A

    The data may contain outliers or missing values due to errors in data collection.

  2. B

    Features may have different scales, affecting model performance.

  3. C

    The dataset may include non-numerical features that need to be converted to numerical representations.

  4. D

    All of these

Question 3

+2 marksOne correct option

What is the purpose of the tol parameter in the fit method of the stochastic regressor?

python
from sklearn.linear_model import SGDRegressor
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from sklearn.datasets import load_breast_cancer
X,y = load_breast_cancer(return_X_y=True)
model = SGDRegressor(early_stopping=True,
validation_fraction=0.2,
tol=0.001,
n_iter_no_change=5)
X_train, X_test, y_train, y_test = train_test_split(X, y,
test_size=0.2,
random_state=42)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
mse = mean_squared_error(y_test, y_pred)
  1. A

    It specifies the tolerance level for early stopping based on the change in the validation error.

  2. B

    It controls the learning rate of the stochastic regressor during training.

  3. C

    It determines the maximum number of iterations for the training process.

  4. D

    It defines the fraction of the validation set used for early stopping.

17 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 23 Feb 2025 paper

The IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term: 20 questions for 40 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 23 Feb 2025 at a glance
TermJanuary 2025 term
SubjectMachine Learning Practice
Course codeBSCS2008
Questions20
Marks40
Duration120 min
MCQ11
MSQ4
Numerical5
Official paperIIT M DIPLOMA AN EXAM QDD2 23 Feb 2025
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More MLP