MauryaHub PYQ Practice

Machine Learning Practice · Quiz 1 · Jan 2024

Machine Learning Practice · Quiz 1 · Jan 2024

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 24 published solutions

Question 194 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Choose the correct options to determine the count of NULL values in each column of a pandas DataFrame named ’df’
6406532468181.Source diagram or notation
6406532468182.Source diagram or notation
6406532468183.Source diagram or notation
6406532468184.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q194

Question 195 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which option will help in selecting data of **odd indexed** columns only? (ie. age, parch are odd indexed 1 and 3 respectively)
6406532468185.Source diagram or notation
6406532468186.Source diagram or notation
6406532468187.Source diagram or notation
6406532468188.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q195

Question 196 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
What is datatype of sex column in the given titanic dataset
6406532468189.
number
6406532468190.
bool
6406532468191.
str
6406532468192.
object

A published solution is not available for this question yet.

Report a correction for Q196

Question 197 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which option will help in filtering data to find **females who are alive** after titanic incident?
6406532468193.Source diagram or notation
6406532468194.Source diagram or notation
6406532468195.Source diagram or notation
6406532468196.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q197

Question 198 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
What is the given code below trying to accomplish for the given titanic dataset ?
Source diagram or notation
6406532468197.Source diagram or notation
6406532468198.Source diagram or notation
6406532468199.Source diagram or notation
6406532468200.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q198

Question 199 MCQ · 1.0 marks

Source diagram or notation
6406532468245.Source diagram or notation
6406532468246.Source diagram or notation
6406532468247.Source diagram or notation
6406532468248.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q199

Question 200 MCQ · 2.0 marks

You are working on a machine learning project that aims to predict housing prices based on various features of the houses. As the first step, you decide to perform exploratory data analysis and visualize the data to understand its structure and relationships. Which of the following visualization techniques or principles is LEAST likely to provide meaningful insights for this kind of regression problem?
6406532468201.
Plotting a heatmap of the correlation matrix to understand the linear relationship between the numeric features.
6406532468202.
Using a scatter plot to visualize the relationship between the square footage of a house and its price.
6406532468203.
Visualizing the distribution of housing prices using a pie chart.
6406532468204.
Creating box plots for housing prices, grouped by the number of bedrooms, to detect outliers and understand the distribution across different categories.

A published solution is not available for this question yet.

Report a correction for Q200

Question 201 MCQ · 2.0 marks

A company collects 40000 samples (examples) to build a Machine Learning model for an application. They decide to use 30% of the total samples for testing (to be stored in the variable **testset**) and the rest 70% for training (to be stored in the variable **trainset**). They also want to sample the same set of samples across multiple runs. Which of the following line (statement) achieves this task? Assume that all samples are stored in the variable **data**.
6406532468205.Source diagram or notation
6406532468206.Source diagram or notation
6406532468207.Source diagram or notation
6406532468208.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q201

Question 202 MCQ · 2.0 marks

Choose the option based on the following statements: Statement 1: The train-test split allows us to simulate the model’s performance on new data by reserving a portion of the dataset for testing. Statement 2: Separating the dataset into training and testing sets helps prevent data leakage, where information from the test set unintentionally influences the model during training. This ensures a fair assessment of the model’s generalization capabilities.
6406532468209.
Statement 1 is True and statement 2 is False
6406532468210.
Statement 1 is False and statement 2 is True
6406532468211.
Both the statements are False
6406532468212.
Both the statements are True

A published solution is not available for this question yet.

Report a correction for Q202

Question 203 MCQ · 2.0 marks

In which of the following scenarios is data cleaning most required?
6406532468213.
Data has missing values and categorical string data.
6406532468214.
Data consists a lot of outliers based on values in target(y) column
6406532468215.
The data consists solely of numerical values and are on a similar scale.
6406532468216.
None of the choices

A published solution is not available for this question yet.

Report a correction for Q203

Question 204 MCQ · 2.0 marks

Source diagram or notation
6406532468221.Source diagram or notation
6406532468222.Source diagram or notation
6406532468223.Source diagram or notation
6406532468224.Source diagram or notation
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q204

Question 205 MCQ · 2.0 marks

Which of the following metrics indicate higher their value, better the regression model’s performance?
6406532468225.
RMSE
6406532468226.
R2
6406532468227.
Mean absolute error
6406532468228.
Mean squared error

A published solution is not available for this question yet.

Report a correction for Q205

Question 206 MCQ · 2.0 marks

Source diagram or notation
6406532468229.
10
6406532468230.
12
6406532468231.
14
6406532468232.
16

A published solution is not available for this question yet.

Report a correction for Q206

Question 207 MCQ · 2.0 marks

Source diagram or notation
6406532468233.
It controls the learning rate of the stochastic regressor during training.
6406532468234.
It determines the maximum number of iterations for the training process.
6406532468235.
It defines the fraction of the validation set used for early stopping.
6406532468236.
It specifies the tolerance level for early stopping based on the change in the validation error.

A published solution is not available for this question yet.

Report a correction for Q207

Question 208 MCQ · 2.0 marks

Source diagram or notation
6406532468237.
Accuracy, Accuracy
6406532468238.
R2 score, R2 score
6406532468239.
Accuracy, R2 score
6406532468240.
R2 score, Accuracy
6406532468241.
F1 score, Precision
6406532468242.
Precision, Recall
6406532468243.
MAE, MSE
6406532468244.
The code will result in an error.

A published solution is not available for this question yet.

Report a correction for Q208

Question 209 MCQ · 3.0 marks

Source diagram or notation
6406532468217.Source diagram or notation
6406532468218.Source diagram or notation
6406532468219.Source diagram or notation
6406532468220.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q209

Question 210 MSQ · 2.0 marks

Suppose that we plot the histogram of numerical features in a data set. This reveals which of the following information?
6406532468249.
Scale of the features
6406532468250.
(left or right) Skew of the distribution
6406532468251.
Modes in the distribution
6406532468252.
Missing values

A published solution is not available for this question yet.

Report a correction for Q210

Question 211 MSQ · 2.0 marks

Source diagram or notation
6406532468253.
**house.data.shape** will give the count of number of rows and columns for features and labels(target) both
6406532468254.
**house.target_names** will give the name of the target column
6406532468255.
**house.data.head()** will show last 5 rows of the data
6406532468256.
**house.feature_names** will give a list of names of the columns of the feature matrix

A published solution is not available for this question yet.

Report a correction for Q211

Question 212 MSQ · 2.0 marks

Which of the following are valid loss functions for SGDClassifier?
6406532468257.
Squared Loss
6406532468258.
Hinge Loss
6406532468259.
Log Loss
6406532468260.
Mean Absolute Error

A published solution is not available for this question yet.

Report a correction for Q212

Question 213 MSQ · 2.0 marks

Source diagram or notation
6406532468261.
Column indexed at 0
6406532468262.
Column indexed at 1
6406532468263.
Column indexed at 2
6406532468264.
Column indexed at 3
6406532468265.
Column indexed at 4
6406532468266.
No columns

A published solution is not available for this question yet.

Report a correction for Q213

Question 214 MSQ · 2.0 marks

Which of the following Evaluation metrics can be used in a regression problem?
6406532468277.
Mean Squared Error
6406532468278.
Accuracy
6406532468279.
F1-Score
6406532468280.
Mean Absolute Error
6406532468281.
credit score
6406532468282.
CGPA

A published solution is not available for this question yet.

Report a correction for Q214

Question 215 MSQ · 3.0 marks

Source diagram or notation
Which of the following feature(s) will be selected in X_selected from X ?
6406532468267.
malic_acid
6406532468268.
magnesium
6406532468269.
flavanoids
6406532468270.
proanthocyanins
6406532468271.
color_intensity
6406532468272.
proline

A published solution is not available for this question yet.

Report a correction for Q215

Question 216 MSQ · 3.0 marks

Source diagram or notation
6406532468273.Source diagram or notation
6406532468274.Source diagram or notation
6406532468275.Source diagram or notation
6406532468276.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q216

Question 217 NAT · 2.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q217