Home / Past papers / MLP End Term / this paper







What will be the shape of the transformed matrix X?
What is the value of prediction after running this code?




A practitioner observes that each time the fit() method is called on clf, the model is trained from scratch and the parameters learned in the previous training call are discarded. Which of the following changes should be made so that the model continues training from the previously learned parameters when fit() is called again?
Which of the following hold true?
How many unique hyperparameter combinations will GridSearchCV evaluate in total?
What will the output of the above clustering show?


A node in the trained decision tree is split only if both of the following conditions are satisfied: • The node contains at least min_samples_split samples. • Each child node created after the split contains at least min_samples_leaf samples. Assume node (N) is a non-leaf node being considered for splitting. In which of the following cases will the split at node (N) be allowed?
How is the final prediction for a test sample obtained?
What does the variable labels represent after the model is fitted?
What will be the shape of the transformed matrix X?
Which of the following metrics are included in the classification report?
Which of the following hold true?

You want to perform the following imputation strategy: • Age → Replace missing values with the mean Age of each Department • Salary → Replace missing values with the median Salary of the entire column • Department → No imputation Which of the following code snippets correctly performs the above imputation?



What is the value of prediction after running this code?
What will the output of the above clustering code?
Which of the following statements is TRUE about how this Random Forest model will behave?






What should the blank space contain?



assume that the noise term
. The model parameters satisfy the constraint
A LinearRegression model is trained without intercept as shown below:
What is the value of
? Enter your answer rounded to three decimal places
If the shape of X is
, what will be the number of features in X_transformed?
Which of the following statements is correct?
MultiLabelBinarizer from sklearn library has been used to convert the y_train into numbers, so which of the following option matches with the output of the following code ?


