Question 1 | MCQ
Solution
Note:
Do not write your answer as percentage. Always enter fractions as they are. e.g. if your answer is
0.245, enter the same, do not enter 24.5 %.
Do not write your answer as percentage. Always enter fractions as they are. e.g. if your answer is
0.245, enter the same, do not enter 24.5 %.
Solution
During classification of linearly separable data-set using perceptron algorithm, as the value of learning rate α is decreased,
Solution
A knn algorithm withk= 30 gives high training error and high validation error. What value of thek we should choose to get the better performance of the algorithm?
Solution
Consider a binary classification problem. Letp1denote the proportion of class 0 examples in a particular node. Which of the following graphs shows correct curves for the Gini-index, Entropy and misclassification error of that node?
Solution
The following is the activation vector output by some hidden layer in a neural network when some input vector is given to it:

Which of the following could be the activation function used in this layer?
Which of the following could be the activation function used in this layer?
Solution
Which of the following are multi label problems? For each option, assume suitable features are available.
Solution
In a random forest model letp<mbe the number of randomly selected features that are used to identify the best split at any node of a tree. Which of the following are true? (mis the original number of features)
Solution
Solution
Consider a test-dataset of 100 points for a binary classification problem, where 60 belong to the positive class (true label) and the rest belong to the negative class (true label). The following is a table for some classifier that has been prepared by an ML engineer:

If this is a valid confusion matrix (just by looking at the numbers), enter the classifier’s recall as the answer. If this is not a valid confusion matrix, enter 0 as the answer. Your answer should be in the interval [0, 1], endpoints inclusive. Enter your answer correct to two decimal places.
If this is a valid confusion matrix (just by looking at the numbers), enter the classifier’s recall as the answer. If this is not a valid confusion matrix, enter 0 as the answer. Your answer should be in the interval [0, 1], endpoints inclusive. Enter your answer correct to two decimal places.
Solution
Solution
Consider unlabeled data with two featuresX1andX2as shown in the figure.

C1 andC2 are the coordinates of centroids obtained after certain iterations ofK-means algorithm withK= 2. Which of the following options is correct about the silhouette scoreS? Note: Euclidean distance is used to calculate the distances.
C1 andC2 are the coordinates of centroids obtained after certain iterations ofK-means algorithm withK= 2. Which of the following options is correct about the silhouette scoreS? Note: Euclidean distance is used to calculate the distances.
Solution
Consider a neural network for a multi-class, image classification problem. When the network is trained on the images as they are, it does a good job on the test data. Call the dataset (train + test) for this setupD1and the networkN1. Assume that we now turn all images upside down, in both the training and test dataset. Now, the network with the same architecture is trained from scratch on this modified dataset. Call the dataset (train + test) for this setupD2and networkN2. Select the most appropriate option.
Solution
Solution
Which of the following code blocks will produce the same value for the variable ‘Ans’? Assume the ‘numpy’ library is imported as ‘np’.
Solution
Solution
Solution
Solution
Solution
You are given a linearly separable dataset with feature matrixX, for which a perceptron has been trained until it converges (perfectly separates the data). The weight vector corresponding to it isw. This dataset has 60 points from the positive class and 40 from the negative class. What is the output of the following snippet of code?

Solution
A Gaussian Naive Bayes model is trained for a multi-class classification problem that has 12 features and 5 classes. Find the total number of parameters that have to be estimated for this model. Consider each parameter to be a scalar value. In other words, if we decide to store all the parameters in a Python list, with each element of the list being a float value corresponding to a single parameter, what is the size of this list? Ignore the priors in the calculation. Only focus on the parameters of the class conditional densities.
Solution
Solution
A multi-class classification problem has 5 classes. The training dataset hasndata-points, with an equal number of points from each of the 5 classes. Consider a dummy classifier that does prediction as follows: for each input data-point, it picks one of the 5 classes at random (uniformly) and outputs that as its prediction. What is the accuracy of the model on the training dataset asn becomes very large? Your answer should be between 0 and 1. Enter your answer correct to two decimal places.
Hint:Think about it in the probabilistic sense.
Hint:Think about it in the probabilistic sense.
Solution
Solution
Solution
IfWijis the weight of the edge from neuroniin layerl− 1 to neuronjin layerl, which of the following statements about the matrixWare true? Neurons in a layer are processed (indexed) from top to bottom. So, the first neuron in a layer is the top-most neuron in that layer.
Solution
Solution
Solution
Solution
Solution
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
How many samples of the training data-set belong to Leaf 2?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the present price of a car which is driven for 5 years is 9.5 lac. If the car has an LPG engine, what will be the prediction for the selling price of the car according to the given regression tree? Enter your answer in lac. If your answer is 5.6 lac, enter the answer 5.6.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What will be the performance of the first stump? Enter your answer correct to two decimal places.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What sample weight will be assigned to the last example to create the next stump? Don’t normalize the sample weights. Enter your answer correct to two decimal places.
Solution
Shape
Thickness [ / ]
3
All colors