Some guidelines on device memory usage (#5038)

* Add memory usage demo

* Update documentation
This commit is contained in:
Rory Mitchell
2019-11-17 07:48:24 +13:00
committed by GitHub
parent 0afcc55d98
commit e67388fb8f
3 changed files with 70 additions and 4 deletions

View File

@@ -1,7 +1,5 @@
# GPU Acceleration Demo
This demo shows how to train a model on the [forest cover type](https://archive.ics.uci.edu/ml/datasets/covertype) dataset using GPU acceleration. The forest cover type dataset has 581,012 rows and 54 features, making it time consuming to process. We compare the run-time and accuracy of the GPU and CPU histogram algorithms.
`cover_type.py` shows how to train a model on the [forest cover type](https://archive.ics.uci.edu/ml/datasets/covertype) dataset using GPU acceleration. The forest cover type dataset has 581,012 rows and 54 features, making it time consuming to process. We compare the run-time and accuracy of the GPU and CPU histogram algorithms.
This demo requires the [GPU plug-in](https://xgboost.readthedocs.io/en/latest/gpu/index.html) to be built and installed.
The dataset is automatically loaded via the sklearn script.
`memory.py` shows how to repeatedly train xgboost models while freeing memory between iterations.