What will be the shape of X and y?
What will be the shape of X and y?
(120,90) and (120,)
(120,10) and (120,)
(90,120) and (90,)
(90,10) and (90,)
Q2MCQ2 marks
What will be the shape of the feature matrix (X.shape) and the label vector (y.shape) for the following block of code?
What will be the shape of the feature matrix (X.shape) and the label vector (y.shape) for the following block of code?
(699, 1) and (599, 1)
(500, 1) and (500, 1)
(1, 500) and (1,500)
(599, 1) and (699, 1)
Q3MCQ2 marks
What will be the output of the following code?
What will be the output of the following code?
Bunch, Tuple, DataFrame, DataFrame
Bunch, Tuple, DataFrame, Tuple
Bunch, Bunch, Bunch, Bunch
DataFrame, DataFrame, DataFrame, DataFrame
Bunch, Ndarray, Bunch, Ndarray
It will result into an error.
Q4MCQ2 marks
Consider following code snippet:
Consider following code snippet: Above classifier uses:
hinge but quadratically penalized.
logistic regression.
linear SVM.
None of these.
perceptron.
Q5MCQ2 marks
Which of the following Naive Bayes algorithms can be applied if the data has discrete features that are categorically distributed?
GaussianNB
CategoricalNB
ComplementNB
None of these
Q6MCQ2 marks
Which of the following options represents the correct output of the following block of code?
Which of the following options represents the correct output of the following block of code?
[0]
[2]
[1.5]
[1]
Q7MCQ2 marks
Which of the following estimators implement partial_fit method in Regression?
Ridge Regression
SGDRegressor
Linear Regression
Polynomial Regression
Q8MCQ2 marks
Mention which of the following statement(s) is / are correct? Statement 1: Incremental learning is a dynamic technique which is applied when training data becomes available gradually over time or its size is out of system memory limits. Statement 2: Sklearn can not process large data in batches.
Statement 1 is correct but statement 2 is incorrect.
Statement 1 is incorrect but statement 2 is correct.
Statement 1 and statement 2 both are incorrect.
Statement 1 and statement 2 both are correct.
Q9MCQ2 marks
Which of the following options represents the correct value of gamma for SVC_classifier = SVC(gamma = ’auto’)?
Q10MCQ2 marks
Consider the following scatter plots of four different input datasets:
Consider the following scatter plots of four different input datasets: Which data will be classified better using gaussian rbf kernel?
Data 1
Data 3
Data 4
Data 2
Q11MCQ2 marks
When a node is split further in a decision tree:
It creates only two new children nodes always.
It can create two or more new children nodes always.
It depends on the cardinality of the categorical feature.
It depends on the scale of the numerical feature.
Q12MCQ2 marks
Which of the following is/are Correct for K-means algorithm.
The algorithm is sensitive to outliers.
It terminates at a local optimum if SSE is used.
k-means is considered to be a linear algorithm.
All of these
Q13MCQ2 marks
Hierarchical Clustering can also be called:
Centroid Based Clustering
Distribution-based Clustering
Density-based Clustering
Connectivity-Based Clustering
Q14MSQ2 marksselect all that apply
Which of the following options represents the major difference between HashingVectorizer and CountVectorizer?
CountVectorizer does not store vocabulary, its object takes less spacecompared to HashingVectorizer
HashingVectorizer does not store vocabulary, its object takes less spacecompared to CountVectorizer
CountVectorizer alleviates any dependence with function calls performed onthe previous chunk of data in case of incremental learning
HashingVectorizer alleviates any dependence with function calls performed onthe previous chunk of data in case of incremental learning
Q15MSQ2 marksselect all that apply
Which of the following statements correctly set L1 penalty to 0.2 and L2 Penalty to 0.8 in LogisticRegression?
Q16MSQ2 marksselect all that apply
Which of the following are hyper parameters in a decision tree?
Number of features
Number of minimum samples to split
Height of the tree
Diameter of the tree
Q17MSQ3 marksselect all that apply
Which of the following statements are incorrect about the AUC?
The ROC curve plots sensitivity (recall) on the x-axis against specificity on the y-axis
A completely effective classifier is a diagonal line, and it will have an AUC of0.5.
The larger the value of AUC, the less effective the classifier.
An AUC of 1 indicates a perfect classifier, which means it gets all the 1scorrectly classified, and doesn’t misclassify any 0s as 1s.
None of these
Q18SA3 marks
The output of the following block of code will be:
The output of the following block of code will be:
Q19SA3 marks
Refer the dataframe(df) given below and enter the correct output (up to 2 decimal points) for the following block of code:
Refer the dataframe(df) given below and enter the correct output (up to 2 decimal points) for the following block of code:
Q20SA3 marks
Enter the output (up to 2 decimal points) for the following block of code.
Enter the output (up to 2 decimal points) for the following block of code.
Q21SA3 marks
What is the correct output of the following block of code? [Note: LinearSVC implements “one-vs-the-rest” multi-class strategy]
What is the correct output of the following block of code? [Note: LinearSVC implements “one-vs-the-rest” multi-class strategy]
Q22MCQ3 marks
Which of the following options represents all the correct precision, Recall, and accuracy values for the confusion matrix shown in Figure 1? [Note: All 3 values should be correct in the same option]
Which of the following options represents all the correct precision, Recall, and accuracy values for the confusion matrix shown in Figure 1? [Note: All 3 values should be correct in the same option]
Which of the following is likely to be the correct output of the code given below?
Which of the following is likely to be the correct output of the code given below?
[0.95238095, 0. ]
[0.85,0.1,0.05]
[2,3,1]
[0.85,0]
There are some mistakes in the 3rd /4th line of code, hence it will produceerror.
Q25MCQ3 marks
Which of the following is likely to be the correct output of the code given below?
Which of the following is likely to be the correct output of the code given below?
5
99
Given code will produce an error
0.82
Q26MCQ3 marks
Mention whether the following statements are TRUE or FALSE . Statement 1 : ‘In order to extend ROC curve and ROC area to multi-label classification, it is necessary to binarize the output.‘ Statement 2: In SGDClassifier, setting warm_start=True does not retain the weight values of the model after max_iter and hence does not produce different results for each execution.‘
Statement 1 is correct but statement 2 is incorrect.
Statement 1 is incorrect but statement 2 is correct.
Statement 1 and statement 2 both are incorrect.
Statement 1 and statement 2 both are correct.
Q27MCQ3 marks
Which of the following options represents the correct option to set the regularization rate in RidgeClassifier?
Q28MCQ3 marks
Which of the following options represents the correct output for the following block of code?
Which of the following options represents the correct output for the following block of code?
(11, 1)
(1, 10)
(1, 11)
(10, 1)
Q29MCQ3 marks
Which of the following options represents the correct output for the following block of code?
Which of the following options represents the correct output for the following block of code?
Which of the following options represents the correct output of the following block of code?
Which of the following options represents the correct output of the following block of code?
array([2])
array([1.5])
array([1])
array([0])
Q31MCQ3 marks
Consider following statements regarding a decision tree model? 1. It is a parametric model. 2. It has a tendency to overfit if allowed to grow unconditionally. 3. It can be used for regression, classification and clustering problems. 4. It is one of the easiest machine learning models to interpret. 5. For classification problems, decision tree’s loss function is same as evaluation metric. Choose the option with all the correct statements:
2, 3
1, 3, 5
3, 5
2, 4
1, 3, 4
1, 2, 4
Q32MCQ3 marks
Lata wants to train a bagging regressor with following specifications: 1. Base estimator as linear regressor with default parameter values. 2. 80% of the data is used to create a bag of samples. 3. Create subsets of training set without replacement. 4. Take half the features when creating subsets of data. 5. Train the model on training set. 6. Print score on test set. Which of the following code blocks will correctly execute Lata’s task? [Note: Assume necessary imports and variables for training and test sets.]
Q33MCQ3 marks
You have a binary classification problem to solve with following information: 1. All features are numircal. 2. The dataset has size of 80 GB. 3. The data has to be preprocessed. 4. After data preprocessing, train the model with gradient descent or its variations. Which of the following will perform the above task?
Perform one hot encoding followed by training with LogisticRegression model(sklearn.linear_model).
Perform standard scaling followed by asklearn.neighbors.KNeighborsClassifier model.
Perform min-max scaling followed by a sklearn.tree.DecisionTreeClassifiermodel.
Perform max-absolute scaling followed by asklearn.linear_model.SGDClassifier model.
Q34MCQ3 marks
(784, 100)
(784, 1)
(1, 784)
(100, 784)
Q35MCQ4 marks
Which of the following options represents the correct output of the following block of code?
Which of the following options represents the correct output of the following block of code?
1
0
0.110
0.223
0.533
Q36MCQ4 marks
Brajesh wants to tune hyper parameters of an AdaBoost model for a classification problem with following specifications: 1. Base estimator as Decision trees classifier with max_depth=1. 2. Number of estimators range from 30 to 40 (both inclusive) at the interval of 1. 3. Cross validation = 5. 4. Learning rate must vary between 0.2 to 2.0 (both inclusive) at the intervals of 0.2. 5. Train the best model on the entire training set. 6. Print score on test set. Which of the following code blocks will correctly execute Brajesh’s task? [Note: Assume necessary imports and variables for training and test sets.]
Comprehension passage - the questions below it refer to this
Go through the code snippet given below and answer the subquestions.
Go through the code snippet given below and answer the subquestions.
Q37MSQ3 marksselect all that apply
Based on the given code,Select all option Which will be considered as input alpha value for our RidgeCV estimator.
0.055
0.05
0.905
0.1
1
Q38MCQ3 marks
Which of the following could be the possible output of print(results.best_score_)?
Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.
Here’s a structured summary of core topics, concepts, principles, and equations essential for the "Diploma Level: Machine Learning Practice" exam, followed by Mermaid knowledge graphs to visualize relationships.