MauryaHub PYQ Practice

Machine Learning Practice · End Term · May 2023 · AN

Machine Learning Practice · End Term · May 2023 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 35 published solutions

Question 246 SHORT_TEXT · 7.0 marks

What is the output of the **second loop** after the execution of the given script?

A published solution is not available for this question yet.

Report a correction for Q246

Question 248 NAT · 2.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q248

Question 249 MCQ · 2.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q249

Question 250 MCQ · 2.0 marks

Source diagram or notation
A.
The pipeline combines multiple models for better model performance.
B.
The pipeline allows for simultaneous training of the scaler and classifier.
C.
The pipeline simplifies the code by encapsulating preprocessing and modeling steps.
D.
The pipeline ensures that only linear SVM can be used for this classification task.

A published solution is not available for this question yet.

Report a correction for Q250

Question 251 MCQ · 2.0 marks

You’ve developed a binary classification model to predict whether an email is spam or not. You want to evaluate the model’s performance using appropriate metrics. The following options represent different evaluation metrics. Choose the one that is most suitable for assessing the model’s performance in this scenario:
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q251

Question 252 MCQ · 2.0 marks

Source diagram or notation
A.
It determines the degree of L2 regularization applied to the model’s weights.
B.Source diagram or notation
It controls the decay rate of the learning rate during each iteration.
C.
It sets the threshold for early stopping based on the loss function improvement.
D.
It adjusts the aggressiveness of stochastic gradient updates for faster convergence.

A published solution is not available for this question yet.

Report a correction for Q252

Question 253 MCQ · 2.0 marks

Source diagram or notation
A.
(16,1)
B.
(8,2)
C.
(4,4)
D.
(1,16)

A published solution is not available for this question yet.

Report a correction for Q253

Question 254 MCQ · 2.0 marks

Source diagram or notation
A.
It ensures that the model will always produce the same predictions for any input data.
B.
It guarantees that the model will converge to the global optimum during training.
C.
It prevents overfitting by adding randomness to the model’s predictions.
D.
It allows for reproducibility, ensuring consistent results across different runs.

A published solution is not available for this question yet.

Report a correction for Q254

Question 255 MSQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q255

Question 256 MSQ · 3.0 marks

Which of the following statements are true?
A.
KNeighborsClassifier with high values of n_neighbors produces complex decision boundaries.
B.
KNeighborsClassifier with high values of n_neighbors produces smooth decision boundaries.
C.
In KNeighborsClassifier the scale of the features(columns) can impact the decision boundaries.
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q256

Question 257 MSQ · 3.0 marks

Which of the following option(s) are correct regarding regularization?
A.
Regularization is the error given by any model while predicting the values for the test set.
B.
It helps in decreasing the bias of the training model.
C.
Compare to without regularized model regularization decreases the variance of the training model
D.
Predictions made with the Ridge Regression are less sensitive to weights(coefficients) than the Linear Regression.

A published solution is not available for this question yet.

Report a correction for Q257

Question 258 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q258

Question 259 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q259

Question 260 MCQ · 3.0 marks

You’ve built a linear regression model to predict the salary of employees based on their years of experience and education level. The model’s coefficients for the features are as follows: - Coefficient for Years of Experience: 5000 - Coefficient for Education Level: 3000 What does the coefficient for ”Years of Experience” (5000) represent in this context?
A.
For each additional year of experience, an employee’s salary is expected to increase by 5000.
B.
For each additional year of experience, an employee’s salary is expected to decrease by 5000.
C.
Education level has a stronger impact on salary than years of experience.
D.
The coefficient doesn’t have any meaningful interpretation in this scenario.

A published solution is not available for this question yet.

Report a correction for Q260

Question 261 MCQ · 3.0 marks

Source diagram or notation
A.
(5, 1)
B.
(5, 3)
C.
(5, 4)
D.
(5, 6)

A published solution is not available for this question yet.

Report a correction for Q261

Question 262 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q262

Question 263 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q263

Question 264 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q264

Question 265 MCQ · 3.0 marks

Source diagram or notation
A.
A higher alpha value results in stronger regularization, leading to larger feature coefficients.
B.
The alpha value has no impact on the regularization strength in ‘RidgeClassifier‘.
C.
Cross-validation can be used to find the optimal alpha value.
D.
‘RidgeClassifier‘ automatically determines the alpha value based on the data distribution.

A published solution is not available for this question yet.

Report a correction for Q265

Question 266 MCQ · 3.0 marks

You’re applying the K-means clustering algorithm to a dataset with a large number of data points. You decide to use the K-means++ initialization method for better convergence and clustering quality. What is the primary advantage of using K-means ++ initialization over random initialization?
A.
K-means++ initialization guarantees finding the global optimum of the clustering solution.
B.
K-means++ initialization speeds up the convergence of the algorithm.
C.
K-means++ initialization reduces the number of clusters needed for accurate results.
D.
K-means++ initialization helps avoid local optima during clustering.

A published solution is not available for this question yet.

Report a correction for Q266

Question 267 MCQ · 3.0 marks

Suppose you are working on a classification task involving handwritten digit recognition using scikit-learn’s MLPClassifier. You have a large dataset of digit images and want to train a neural network for this task. However, you’re concerned about overfitting and want to make sure the training process stops at the right time to avoid this issue. In the context of training an MLPClassifier for handwritten digit recognition,how does the early stopping parameter help prevent overfitting?
A.
It terminates the training process as soon as the specified number of hidden layers are trained.
B.
It automatically decreases the learning rate during training to slow down the optimization process.
C.
It pauses the training when the model’s performance on a validation set stops improving.
D.
It enforces a maximum limit on the number of epochs during the training process.

A published solution is not available for this question yet.

Report a correction for Q267

Question 268 MCQ · 3.0 marks

Source diagram or notation
A.
It specifies the maximum number of features to be used during training.
B.
It determines the maximum number of neurons in the hidden layers.
C.
It sets the maximum number of iterations for the training process.
D.
It controls the maximum number of epochs for the training process.

A published solution is not available for this question yet.

Report a correction for Q268

Question 269 MCQ · 3.0 marks

You’re working on a multi-class classification task using the ‘MLPClassifier’ from scikit-learn. The dataset contains features with varying scales, and you’re considering whether to scale the features before training the model. How might feature scaling impact the prediction accuracy of the ‘MLPClassifier’?
A.
Feature scaling has no effect on the accuracy of ‘MLPClassifier‘ predictions.
B.
Scaling features is only relevant if the dataset contains categorical features.
C.
Feature scaling can lead to overfitting and decreased prediction accuracy.
D.
Scaling features can help the model converge faster and improve prediction accuracy.

A published solution is not available for this question yet.

Report a correction for Q269

Question 270 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q270

Question 271 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q271

Question 272 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q272

Question 273 MSQ · 4.0 marks

Source diagram or notation
A.
The logistic regression model is set up for binary classification.
B.
The model does not use any regularization because the parameter C is set.
C.
The model has been specifically set up to handle a multi-class classification problem using a softmax regression approach.
D.
The model will iterate over the data a maximum of 1000 times, irrespective of convergence.

A published solution is not available for this question yet.

Report a correction for Q273

Question 274 MSQ · 2.0 marks

Source diagram or notation
A.
MultinomialNB
B.
RandomForestRegressor
C.
MiniBatchKMeans
D.
LogisticRegressor

A published solution is not available for this question yet.

Report a correction for Q274

Question 275 MSQ · 2.0 marks

Source diagram or notation
A.
‘poly’,
B.
‘lasso’
C.
‘scale’
D.
‘sigmoid’

A published solution is not available for this question yet.

Report a correction for Q275

Question 276 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q276

Question 277 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q277

Question 278 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q278

Question 279 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q279

Question 280 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q280

Question 281 MCQ · 4.0 marks

You’re evaluating the results of a clustering algorithm and you calculate the silhouette score for the clustering solution. The obtained silhouette score is -0.15. What can you infer from this silhouette score?
A.
The clustering solution has well-defined and distinct clusters.
B.
The silhouette score indicates a random distribution of data points across clusters.
C.
The data points are equally spaced across clusters.
D.
The clustering solution is flawed and the data points might be assigned to incorrect clusters.       **PDSA** **Section Id :** 64065341314 **Section Number :** 11 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 27 **Number of Questions to be attempted :** 27 **Section Marks :** 100 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q281