Question 1 | MCQ
Solution
Solution
We have a dataset which has only numerical features. We are implementing the following model on this dataset. (Note: X and y are feature matrix and label vector respectively.)

We find that the performance of the model is unsatisfactory. Which of the following models may be useful to use instead of CategoricalNB?
We find that the performance of the model is unsatisfactory. Which of the following models may be useful to use instead of CategoricalNB?
Solution
Consider the following two models:

In general, which of the models will have a high bias?
In general, which of the models will have a high bias?
Solution
The below figure (Figure 1) shows AUC-ROC curves for three logistic regression models. Different colors show curves for different hyper parameters values.
Which of the AUC-ROC curves will give best result?

Which of the AUC-ROC curves will give best result?
Solution
What is the default loss value in SGDClassifier API and it gives which classifier?
Solution
Which of the following will be the correct output of the code snippet given below?

Solution
What would be the best value for k to be used in KNN algorithm based on the graph given below?

Solution
Which of the following numerical value should be at the place of ”?” symbol in the output? (Assume necessary imports)

Solution
What is the output of the following block of code?

Solution
What is the output of following code snippet (assume necessary imports)?

Solution
Solution
We have run the following code on a highly imbalanced dataset and we observe that it has performed poorly on parameters like accuracy, precision and recall.

Which among the following techniques is most likely to improve the accuracy of the model?
Which among the following techniques is most likely to improve the accuracy of the model?
Solution
We have run the following code:

Knowing the details of the data generation, by changing which of the following hyperparameters, we are likely to have the highest improvement in score?
Knowing the details of the data generation, by changing which of the following hyperparameters, we are likely to have the highest improvement in score?
Solution
Rahul is working on a large dataset where he needs to Convert a collection of text documents to a matrix. Which of the following vectorizer would you suggest him to use?
Solution
Consider following code and choose correct options (assume necessary imports).

Solution
Vishal is working on a classification model. He is having the dataset of 120 GB size. But the ram of his machine is 4GB only. Which of the following algorithms do you think can help him? Select all that apply.
Solution
Which of the following code will correctly train a large scale regression model using partial_fit,If
shape of X_train,Y_train are given as (9000,90,10) and (9000,90) respectively?
shape of X_train,Y_train are given as (9000,90,10) and (9000,90) respectively?
Solution
The one-vs-one approach in multi-class classification is implemented by-
Solution
NOTE: Enter your answer to the nearest integer.
Solution
What is the output of the following code?

NOTE: Enter your answer to the nearest integer.
NOTE: Enter your answer to the nearest integer.
Solution
What will be the output of the following code snippet?

NOTE: Enter your answer to the nearest integer.
NOTE: Enter your answer to the nearest integer.
Solution
Shape
Thickness [ / ]
3
All colors