Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : MACHINE LEARNING PRACTICE"
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
Ashok has to train a logistic regression model on a dataset with gradient descent approach. Which of the following solvers can he use?
Solution
Consider following code snippet:

Solution
Brajesh wrote following code snippet:

He learnt that every time he calls fit() method on ‘clf’, the parameters learnt from the previous training session (i.e. previous call to ‘fit()’) are lost. What should he change in code so that this problem is removed?
He learnt that every time he calls fit() method on ‘clf’, the parameters learnt from the previous training session (i.e. previous call to ‘fit()’) are lost. What should he change in code so that this problem is removed?
Solution
Consider following variants of gradient descent algorithm:
1. full batch gradient descent
2. mini batch gradient descent
3. stochastic gradient descent
Which of the following variants of gradient descent can be implemented with SGDClassifier?
1. full batch gradient descent
2. mini batch gradient descent
3. stochastic gradient descent
Which of the following variants of gradient descent can be implemented with SGDClassifier?
Solution
Suppose we have a multi-class classification problem with n classes. Which of the following methods require exactly n classifiers to solve this problem?
Solution
What might be the possible output of the following code:

Solution
Consider following code snippet:

Solution
What might be the possible output of the following code:

Solution
What might be the possible output of the following code:

Solution
Mention TRUE or FALSE: Feature scaling does not impact KNN model performance
Solution
By using all features of a dataset accuracy score of 100% is achieved on the training set, but accuracy score of 70% on test set, which of the following statements is most relevant?
Solution
Which of the following code snippets correctly sets up a RandomizedSearchCV object to perform hyperparameter tuning on a RandomForestClassifier with the following parameters to be tested:
- Number of estimators: 50, 100, 150
- Maximum depth of the tree: 5, 10, 15
- Minimum number of samples to enable a split: 2, 4, 6
- Number of estimators: 50, 100, 150
- Maximum depth of the tree: 5, 10, 15
- Minimum number of samples to enable a split: 2, 4, 6
Solution
Decision Trees are prone to:
Solution
Consider the following code. How many DecisionTreeClassifier models will be trained internally?

Solution
The precision-recall curve
Solution
Consider a classification dataset with 98% negative samples and 2% positive samples. A model is trained on this data, which of the following evaluation metrics are suitable for measuring effectiveness of this model:
Solution
Consider following code snippet:

Solution
Which of the following option(s) are correct regarding regularization?
Solution
Which of the following statements are true? (Multiple options may be correct.)
Solution
Fill in the missing parameter value in the following estimator that can be used to classify the data

Solution
Which of the following is/are correct?
Solution
Which of the following options are true for regularization parameter C in sklearn.svm.SVC ?
Solution
Consider the following block of code:

Solution
Consider the following code with respect to some feature matrix X and target vector y:

Solution
Shape
Thickness [ / ]
3
All colors