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
Comprehension Passage
Consider following common data and answer the subquestions:

What will be the output of the following code snippet?

Enter -1, if you think the above code snippet will generate an error.
Enter -1, if you think the above code snippet will generate an error.
Solution
Comprehension Passage
Consider following common data and answer the subquestions:

What will be the output of the following code snippet?

Enter -1, if you think the above code snippet will generate an error.
Enter -1, if you think the above code snippet will generate an error.
Solution
Comprehension Passage
Consider following common data and answer the subquestions:

What will be the output of the following code snippet?

Enter -1, if you think the above code snippet will generate an error.
Enter -1, if you think the above code snippet will generate an error.
Solution
Comprehension Passage
Consider following common data and answer the subquestions:

How many columns have datatype as ”float64”?
Solution
Comprehension Passage
Consider following common data and answer the subquestions:

What will be the output of the following code snippet?

Enter -1, if you think the above code snippet will generate an error.
Enter -1, if you think the above code snippet will generate an error.
Solution
Consider following parameter grid for regression with RandomForest:

How many unique combinations of hyperparameters are there in the above parameter grid?
How many unique combinations of hyperparameters are there in the above parameter grid?
Solution
How to make SGDRegressor stop after 1000 epochs?
Solution
Solution
Which of the following is an example of an ordinal variable?
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Consider below statements and choose the correct option:
Statement1:The bagging technique combines multiple models trained on different subsets of data
Statement2:The Boosting technique trains the model Parallelly, focusing on the error made by the other model.
Statement1:The bagging technique combines multiple models trained on different subsets of data
Statement2:The Boosting technique trains the model Parallelly, focusing on the error made by the other model.
Solution
How does agglomerative clustering handle outliers?
Solution
What is agglomerative clustering?
Solution
Solution
Consider the following ML task/steps for a regression dataset:
1. Read the data from a file (named ‘dataset.csv’). It has 7 columns. The last column is the target variable, all 6 features numerical.
2. Remove rows which has target values missing.
3. Split the data into training and test sets. Take randomly the 70% of rows in the training set and the rest of them into the test set.
4. Fill the missing values in the features by KNNImputer using 3 nearest neighbours.
5. Train a LinearRegression model on the training set.
6. Report R2 score on the test set.
Which of the following code snippets correctly accomplishes the above task? Assume necessary imports.
1. Read the data from a file (named ‘dataset.csv’). It has 7 columns. The last column is the target variable, all 6 features numerical.
2. Remove rows which has target values missing.
3. Split the data into training and test sets. Take randomly the 70% of rows in the training set and the rest of them into the test set.
4. Fill the missing values in the features by KNNImputer using 3 nearest neighbours.
5. Train a LinearRegression model on the training set.
6. Report R2 score on the test set.
Which of the following code snippets correctly accomplishes the above task? Assume necessary imports.
Solution
Solution
Solution
Solution
Solution
Data snooping:
Solution
Which of the following algorithms may get impacted by feature scaling?
Solution
Solution
Which of the following statements are true?
Solution
Which options are correct for Support Vectors in SVM ?
Solution
Which of the following are correct for Kmeans clustering algorithm?
Solution
Solution
Solution
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What will be the output of the following code?

Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What will be the output of the following code?

Solution
Shape
Thickness [ / ]
3
All colors