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 increased,
Solution
A knn algorithm withk= 10 gives low training error and high validation error. What value ofk should we 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
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
Solution
Solution
Consider unlabeled data with two featuresX1andX2as shown in the figure.

C1 andC2 are the coordinates of centroids obtained after certain iterations of theK-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 of theK-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
Two classifiers are trained on a dataset for a binary classification problem. They are then tested on the same dataset. TheF1scores of both classifiers are the same. (p1,r1) and (p2,r2) are the precision-recall scores for the two classifiers.
Consider the following statements:
Statement-1
Ifp1>p2, thenr1<r2
Statement-2
Ifp1=p2, thenr1=r2
Select the most appropriate option.
Consider the following statements:
Statement-1
Ifp1>p2, thenr1<r2
Statement-2
Ifp1=p2, thenr1=r2
Select the most appropriate option.
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
Rajesh trained a model on house price prediction problem. After training he came up with following model:
y= 4000 − 20 ·x1+ 1500 ·x2− 15 ·x3+ 3 ·x4
where, yis predicted house price, x1is age of the house in years, x2is the area of house/apartment in square feet, x3is the number of floors the house/building is, x4represents if the house is facing the sea or not.
According to Rajesh’s model, which of the following statements are correct?
y= 4000 − 20 ·x1+ 1500 ·x2− 15 ·x3+ 3 ·x4
where, yis predicted house price, x1is age of the house in years, x2is the area of house/apartment in square feet, x3is the number of floors the house/building is, x4represents if the house is facing the sea or not.
According to Rajesh’s model, which of the following statements are correct?
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 70 points from the positive class and 30 from the negative class. What is the output of the following snippet of code?

trained until it converges (perfectly separates the data). The weight vector corresponding to it isw. This dataset has 70 points from the positive class and 30 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 10 features and 3 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
The MNIST digit classification problem has 10 classes. The training dataset hasndata points, with an equal number of points from each of the 10 classes. Consider a dummy classifier that does prediction as follows: for each input data-point, it picks one of the 10 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.
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.
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 1?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the present price of a car which is driven for 7 years is 6.0 lac. If the car has a diesel 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 first example to create the next stump? Don’t
normalize the sample weights. Write your answer correct to two decimal places.
normalize the sample weights. Write your answer correct to two decimal places.
Solution
Shape
Thickness [ / ]
3
All colors