Python for Data Science and Machine Learning
Python for Data Science and Machine Learning - Important Points
16. | Which of the following algorithms is used for clustering in machine learning? |
---|
A. Decision tree
B. Random forest
C. K-means
D. Logistic regression
View Answer Discuss Work SpaceAnswer: option c
Explanation:
17. | Which of the following is a method for handling missing data in Pandas? |
---|
A. Removing rows with missing data
B. Filling missing data with a fixed value
C. Interpolating missing data based on neighboring values
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
18. | Which of the following is a way to prevent overfitting in machine learning? |
---|
A. Increasing model complexity
B. Decreasing the amount of training data
C. Adding more features to the model
D. Regularization
View Answer Discuss Work SpaceAnswer: option d
Explanation:
19. | Which of the following is a Python library for working with SQL databases? |
---|
A. Pandas
B. NumPy
C. SQLAlchemy
D. Scikit-learn
View Answer Discuss Work SpaceAnswer: option c
Explanation:
20. | What is the purpose of the train-test split function in machine learning? |
---|
A. To split the data into training and test sets
B. To perform cross-validation on the data
C. To perform hyperparameter tuning on the model
D. None of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation: