GPU-accelerated model training with cuML and XGBoost: Practice Questions — Machine Learning With RAPIDS (NVIDIA-Certified Associate: Accelerated Data Science)
Practice Questions: GPU-Accelerated Model Training with cuML and XGBoost These multiple-choice questions are designed to help candidates prepare for...
Practice Questions: GPU-Accelerated Model Training with cuML and XGBoost
These multiple-choice questions are designed to help candidates prepare for the NVIDIA-Certified Associate: Accelerated Data Science exam, focusing specifically on GPU-accelerated model training using RAPIDS libraries cuML and XGBoost.
Which of the following best describes the primary advantage of using cuML over traditional CPU-based machine learning libraries?
- A. cuML provides higher accuracy models by using new algorithms.
- B. cuML enables GPU acceleration, significantly reducing training time for large datasets.
- C. cuML requires less memory than CPU-based libraries.
- D. cuML automatically tunes hyperparameters without user input.
Correct Answer: B
Explanation: cuML leverages GPU acceleration to speed up model training and inference, especially beneficial for large datasets. It does not inherently improve accuracy or automatically tune hyperparameters.
When training a regression model with cuML, which algorithm would be most appropriate for predicting continuous numeric values?
- A. cuML Random Forest Classifier
- B. cuML Linear Regression
- C. cuML K-Means Clustering
- D. cuML Logistic Regression
Correct Answer: B
Explanation: Linear Regression is used for predicting continuous numeric values, making it suitable for regression tasks. Random Forest Classifier and Logistic Regression are classification algorithms, while K-Means is unsupervised clustering.
Which parameter in XGBoost controls the maximum depth of a tree and can impact model complexity and overfitting?
- A. learning_rate
- B. max_depth
- C. n_estimators
- D. subsample
Correct Answer: B
Explanation: max_depth sets the maximum depth of each tree in the ensemble, controlling model complexity. Higher values can lead to overfitting.
In cuML's GPU-accelerated Random Forest, what is the main benefit of using GPU parallelism during training?
- A. It increases the number of trees in the forest automatically.
- B. It reduces training time by parallelizing tree construction across GPU cores.
- C. It improves model interpretability.
- D. It guarantees better accuracy than CPU implementations.
Correct Answer: B
Explanation: GPU parallelism allows simultaneous construction of trees or tree nodes, significantly reducing training time. It does not inherently increase accuracy or interpretability.
Which cuML function would you use to evaluate classification model performance using a confusion matrix?
- A. cuml.metrics.accuracy_score
- B. cuml.metrics.confusion_matrix
- C. cuml.metrics.mean_squared_error
- D. cuml.metrics.r2_score
Correct Answer: B
Explanation: confusion_matrix computes the confusion matrix, which summarizes classification performance by showing true positives, false positives, true negatives, and false negatives.
What is the purpose of cross-validation when training models with cuML or XGBoost?
- A. To increase the size of the training dataset.
- B. To assess model generalization by evaluating performance on multiple data splits.
- C. To speed up training using GPU acceleration.
- D. To automatically select the best hyperparameters without user input.
Correct Answer: B
Explanation: Cross-validation splits data into multiple folds to evaluate model performance on unseen data, helping to assess generalization and reduce overfitting.
Which of the following is a common hyperparameter tuning technique compatible with RAPIDS libraries?
- A. Grid Search
- B. Manual tuning only
- C. Genetic Algorithms exclusively
- D. No hyperparameter tuning is supported
Correct Answer: A
Explanation: Grid Search is a widely used hyperparameter tuning method that can be applied with RAPIDS models to systematically explore parameter combinations.
In XGBoost, what does the learning_rate hyperparameter control?
- A. The number of trees in the model
- B. The step size shrinkage used to prevent overfitting
- C. The maximum depth of each tree
- D. The proportion of features used per tree
Correct Answer: B
Explanation: learning_rate (also called eta) controls the contribution of each tree to the overall model, helping to prevent overfitting by shrinking weights.
More in this topic
Ready to test your knowledge?
Put what you've learned into practice with a quick quiz and track your progress.
Test your knowledge →