menu

Python for Data Science and Machine Learning

Python for Data Science and Machine Learning - Important Points


11. Which of the following evaluation metrics is used for binary classification problems?

A. Mean squared error

B. R-squared

C. F1 score

D. None of the above

Discuss Work Space

Answer: option c

Explanation:

F1 score is a metric used for binary classification problems, which takes into account both precision and recall.

12. What is the purpose of cross-validation in machine learning?

A. To test the performance of the model on unseen data

B. To create a validation set for hyperparameter tuning

C. To reduce overfitting of the model

D. All of the above

Discuss Work Space

Answer: option d

Explanation:

Cross-validation is a technique used to assess the performance of a model, create a validation set for hyperparameter tuning, and reduce overfitting.

13. Which of the following is a feature selection technique in machine learning?

A. Principal Component Analysis (PCA)

B. Recursive Feature Elimination (RFE)

C. K-means clustering

D. Gradient descent

Discuss Work Space

Answer: option b

Explanation:

Recursive Feature Elimination (RFE) is a feature selection technique used in machine learning to select the best subset of features for a given problem.

14. Which of the following is a hyperparameter in machine learning?

A. Number of features

B. Learning rate

C. Number of samples

D. Target variable

Discuss Work Space

Answer: option b

Explanation:

Learning rate is a hyperparameter in machine learning, which determines the step size at each iteration while moving toward a minimum of a loss function.

15. What is the purpose of regularization in machine learning?

A. To reduce model complexity and prevent overfitting

B. To increase model complexity and prevent underfitting

C. To improve model accuracy on training data

D. None of the above

Discuss Work Space

Answer: option a

Explanation:

Regularization is a technique used in machine learning to reduce model complexity and prevent overfitting, by adding a penalty term to the loss function.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now