Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : MACHINE LEARNING PRACTICE (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider the following Python code using Pandas:

What does the groupby operation in the code achieve?
What does the groupby operation in the code achieve?
Solution
Solution
Which of the following metrics indicate higher their value, better the regression model’s performance?
Solution
Which of the following variations of gradient descent can be implemented with SGDClassifier?
Solution
Consider the Ridge regression model in scikit-learn, represented by the Ridge class.
Which of the following statements about Ridge regression is correct?
Which of the following statements about Ridge regression is correct?
Solution
Which of the following method is used to estimate the probabilities in SGD-Classifier with suitable loss?
Solution
Solution
When using CountVectorizer in scikit-learn, what does the max_features parameter control?
Solution
Which of these may NOT help in handling overfitting in decision trees?
Solution
Which of the following is/are Clustering Method.
Solution
You’re working with a large image and want to group similarly coloured segments in the image together. No other information is provided with the image. Which of the following techniques will you use to accomplish the task?
Solution
Solution
Solution
Solution
Which of the following code snippets represent correct methods to obtain cross validated performance measure using LeaveOneOut?
Solution
Solution
You’re building an ‘MLPClassifier‘ for a dataset with a large number of features. The goal is to predict whether a patient is going to have parkinson disease in next
12 months. You’re trying to decide the appropriate number of neurons in the hidden layers of the neural network. Which statement about adjusting the hidden_layer_sizes parameter is correct?
12 months. You’re trying to decide the appropriate number of neurons in the hidden layers of the neural network. Which statement about adjusting the hidden_layer_sizes parameter is correct?
Solution
Which of the following code snippet can correctly plot the elbow graph for feature matrix X (k value is taken from 1 to 10)?
Solution
Solution
Solution
Solution
Solution
Consider a dataset representing various attributes of red wine, loaded into a Pandas DataFrame named data using the following code:

Suppose we are interested in extracting the value of the chlorides attribute for the third sample in the dataset (2nd by index). Which of the following expressions correctly achieves this? chlorides is at the 4th index of columns.
Suppose we are interested in extracting the value of the chlorides attribute for the third sample in the dataset (2nd by index). Which of the following expressions correctly achieves this? chlorides is at the 4th index of columns.
Solution
Solution
Which of the following observations warrant use of SGD model?
Solution
Solution
Solution
Solution
Solution
Solution
When using a Support Vector Classifier (SVC) in scikit-learn with different values of the regularization parameter (C), how does the complexity of the decision boundary change? Select all correct statements:
Solution
Solution
Solution
Solution
Solution
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
How many Accidents per 1000 Driver happens for Age 25 and driving blue car ?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
To improve the given model which of the following preprocessing step you suggest?
Solution
Shape
Thickness [ / ]
3
All colors