Machine Learning Using Python.docx
Document Details
Uploaded by ErrFreeZirconium3026
Tags
Related
- Python for Data Science Lecture Notes PDF
- Top Data Scientist Skills 2024 PDF
- Machine Learning and Classification Algorithms PDF
- An Introduction to Statistical Learning, With Applications in Python (ISLP) PDF
- Introduction to Machine Learning with Python (PDF)
- Introduction to Machine Learning with Python PDF
Full Transcript
Which library in Python is commonly used for machine learning tasks? A. NumPy B. Matplotlib C. Pandas D. Scikit-learn Answer: D) Scikit-learn ======================= 2. What is the primary function of NumPy in machine learning with Python? E. Data visualization F. Data man...
Which library in Python is commonly used for machine learning tasks? A. NumPy B. Matplotlib C. Pandas D. Scikit-learn Answer: D) Scikit-learn ======================= 2. What is the primary function of NumPy in machine learning with Python? E. Data visualization F. Data manipulation G. Machine learning algorithms H. Statistical analysis Answer: B) Data manipulation ============================ 3. Which of the following is NOT a supervised learning algorithm available in scikit-learn? I. Decision Trees J. K-Means Clustering K. Support Vector Machines L. Random Forests Answer: B) K-Means Clustering ============================= 4. Which algorithm is commonly used for classification tasks in machine learning? M. Linear Regression N. K-Means Clustering O. K-Nearest Neighbors P. Principal Component Analysis Answer: C) K-Nearest Neighbors ============================== 5. What is the purpose of feature scaling in machine learning? Q. Increasing the complexity of the model R. Reducing the dimensionality of the dataset S. Improving the interpretability of the model T. Normalizing the range of features Answer: D) Normalizing the range of features ============================================ 6. Which method is used to split the dataset into training and testing sets in scikit-learn? U. train\_split() V. test\_split() W. split\_train\_test() X. train\_test\_split() Answer: D) train\_test\_split() =============================== 7. What is the primary metric used to evaluate classification models? Y. Mean Absolute Error (MAE) Z. Mean Squared Error (MSE) A. Accuracy B. R-squared Answer: C) Accuracy =================== 8. Which method is used to instantiate a linear regression model in scikit-learn? C. LinearRegression() D. LogisticRegression() E. RandomForestRegressor() F. KNeighborsRegressor() Answer: A) LinearRegression() ============================= A. Feature selection B. Model evaluation C. Model optimization D. Data preprocessing Answer: C) Model optimization ============================= 10. Which cross-validation technique is commonly used to evaluate machine learning models? A. Holdout validation B. K-Fold Cross-Validation C. Leave-One-Out Cross-Validation D. Random Shuffle Cross-Validation Answer: B) K-Fold Cross-Validation ================================== 11. Which algorithm is used for anomaly detection in machine learning? E. Naive Bayes F. K-Means Clustering G. Decision Trees H. Support Vector Machines Answer: B) K-Means Clustering ============================= 12. Which library in Python is commonly used for data visualization in machine learning? I. NumPy J. Pandas K. Matplotlib L. Scikit-learn Answer: C) Matplotlib ===================== 13. Which technique is used to handle missing values in a dataset? M. Dropping rows with missing values N. Replacing missing values with the mean O. Replacing missing values with the mode P. All of the above Answer: D) All of the above =========================== 14. Which algorithm is commonly used for dimensionality reduction? Q. K-Means Clustering R. Principal Component Analysis (PCA) S. Random Forests T. Gradient Boosting Answer: B) Principal Component Analysis (PCA) ============================================= 15. What does the term \"overfitting\" refer to in machine learning? U. Model that performs well on training data but poorly on test data V. Model that performs well on both training and test data W. Model that is too simple to capture the underlying patterns in data X. None of the above Answer: A) Model that performs well on training data but poorly on test data ============================================================================ 16. Which of the following is NOT a type of ensemble learning technique? Y. Bagging Z. Boosting A. Stacking B. Gradient Descent Answer: D) Gradient Descent =========================== 17. Which method is used to check for multicollinearity in a dataset? C. Correlation matrix D. Covariance matrix E. Scatter plot matrix F. All of the above Answer: A) Correlation matrix ============================= 18. Which algorithm is used for regression tasks in machine learning? G. K-Means Clustering H. Linear Regression I. Naive Bayes J. K-Nearest Neighbors Answer: B) Linear Regression ============================ A. Regularization B. Dimensionality Reduction C. Feature Scaling D. Cross-Validation Answer: A) Regularization ========================= 20. Which method is used to evaluate the importance of features in a machine learning model? A. Feature Scaling B. Feature Engineering C. Feature Extraction D. Feature Importance