Machine Learning Questions - Study24x7
Social learning Network
machinelearningquestions Cover image
machinelearningquestions
Machine Learning Questions
  • Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Web Development
5 followers study24x7 10 Mar 2025 12:13 PM study24x7 study24x7

What is the purpose of pruning in decision trees?

A

To increase the depth of the tree

B

To reduce the size of the tree

C

To improve training speed

D

To prevent overfitting

study24x7
Write a comment
5 followers study24x7 10 Mar 2025 12:12 PM study24x7 study24x7

What is a decision tree in machine learning?

A

A model for regression tasks

B

A model for clustering

C

A tree-like structure for decision making

D

A method for dimensionality reduction

study24x7
Write a comment
5 followers study24x7 10 Mar 2025 11:54 AM study24x7 study24x7

A decision tree model has a very high depth and performs poorly on test data. What could be the reason?

A

Overfitting

B

Underfitting

C

Insufficient training data

D

Wrong cost function

study24x7
Write a comment
5 followers study24x7 07 Mar 2025 12:08 PM study24x7 study24x7

A logistic regression model is overfitting on training data. What can be done to mitigate this?

A

Reduce the training data size

B

Increase the number of features

C

Apply regularization

D

Use higher learning rate

study24x7
Write a comment
5 followers study24x7 07 Mar 2025 12:04 PM study24x7 study24x7

A classification model has high accuracy but low recall. What does this indicate?

A

Model is overfitting

B

Model has high false negatives

C

Model has high false positives

D

Data is imbalanced

study24x7
Write a comment
5 followers study24x7 07 Mar 2025 12:03 PM study24x7 study24x7

Which library is used for implementing decision trees in Python?

A

numpy

B

pandas

C

sklearn

D

matplotlib

study24x7
Write a comment
5 followers study24x7 07 Mar 2025 12:02 PM study24x7 study24x7

How do you calculate the precision score in a classification task using sklearn?

A

precision_score()

B

precision()

C

calc_precision()

D

precision_calc()

study24x7
Write a comment
5 followers study24x7 06 Mar 2025 10:53 AM study24x7 study24x7

Which function in sklearn is used to implement logistic regression?

A

log_regression()

B

LogisticRegression()

C

reg_log()

D

log_reg()

study24x7
Write a comment
5 followers study24x7 06 Mar 2025 10:52 AM study24x7 study24x7

Which of the following algorithms is commonly used for multi-class classification?

A

K-Means

B

Naive Bayes

C

KNN

D

Logistic Regression

study24x7
Write a comment
5 followers study24x7 06 Mar 2025 10:51 AM study24x7 study24x7

What is the key difference between logistic regression and linear regression?

A

Logistic regression is used for classification

B

Linear regression is used for classification

C

Logistic regression predicts continuous values

D

Linear regression uses categorical labels

study24x7
Write a comment
5 followers study24x7 05 Mar 2025 10:54 AM study24x7 study24x7

Which metric is most suitable for imbalanced classification datasets?

A

Accuracy

B

Precision

C

Recall

D

F1-Score

study24x7
Write a comment
5 followers study24x7 05 Mar 2025 10:53 AM study24x7 study24x7

What is the purpose of a confusion matrix in classification problems?

A

To evaluate clustering results

B

To assess classification accuracy

C

To determine data distribution

D

To predict continuous values

study24x7
Write a comment
5 followers study24x7 05 Mar 2025 10:52 AM study24x7 study24x7

Which of the following is an example of a binary classification problem?

A

Predicting house prices

B

Classifying emails as spam or not

C

Clustering customers

D

Predicting temperature

study24x7
Write a comment
5 followers study24x7 04 Mar 2025 10:26 AM study24x7 study24x7

What is the goal of classification in machine learning?

A

To cluster data

B

To predict continuous values

C

To categorize data into predefined classes

D

To reduce dimensionality

study24x7
Write a comment
5 followers study24x7 04 Mar 2025 10:25 AM study24x7 study24x7

A Ridge regression model gives inconsistent results. What could be the cause?

A

Incorrect regularization parameter

B

Too many features

C

Underfitting

D

Wrong cost function

study24x7
Write a comment
5 followers study24x7 04 Mar 2025 10:24 AM study24x7 study24x7

A regression model shows a high variance but low bias. What might be the issue?

A

Overfitting

B

Underfitting

C

Multicollinearity

D

High-dimensionality

study24x7
Write a comment
5 followers study24x7 03 Mar 2025 12:33 PM study24x7 study24x7

A linear regression model shows a high R-squared value but low predictive performance on test data. What could be the issue?

A

Overfitting

B

Underfitting

C

Data leakage

D

Insufficient data

study24x7
Write a comment
5 followers study24x7 03 Mar 2025 12:33 PM study24x7 study24x7

Which library is used for implementing Ridge regression in Python?

A

numpy

B

pandas

C

sklearn

D

matplotlib

study24x7
Write a comment
5 followers study24x7 03 Mar 2025 12:32 PM study24x7 study24x7

How can you compute the Mean Squared Error (MSE) of a regression model in sklearn?

A

mean_squared_error()

B

calculate_mse()

C

regression_mse()

D

mse_calc()

study24x7
Write a comment
5 followers study24x7 28 Feb 2025 10:52 AM study24x7 study24x7

Which function in sklearn is used for implementing linear regression?

A

lin_reg()

B

LinearRegression()

C

regression()

D

fit_regression()

study24x7
Write a comment
Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages