|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "### 安装XGBoost-gpu Win10" |
| 8 | + ] |
| 9 | + }, |
| 10 | + { |
| 11 | + "cell_type": "markdown", |
| 12 | + "metadata": {}, |
| 13 | + "source": [ |
| 14 | + "1. 找个位置:\n", |
| 15 | + "`git clone --recursive https://github.com/dmlc/xgboost`\n", |
| 16 | + "2. 下载[编译文件](http://www.picnet.com.au/blogs/guido/2016/09/22/xgboost-windows-x64-binaries-for-download/)丢到`xgboost\\python-package\\xgboost`中\n", |
| 17 | + "3. 进入虚拟环境,运行`cd xgboost\\python-package\\ || python setup.py install`\n", |
| 18 | + "4. 检测`cd xgboost\\demo\\gpu_acceleration\\ || python cover_type.py`" |
| 19 | + ] |
| 20 | + }, |
| 21 | + { |
| 22 | + "cell_type": "markdown", |
| 23 | + "metadata": {}, |
| 24 | + "source": [ |
| 25 | + "### 安装XGBoost-gpu Ubuntu" |
| 26 | + ] |
| 27 | + }, |
| 28 | + { |
| 29 | + "cell_type": "markdown", |
| 30 | + "metadata": {}, |
| 31 | + "source": [ |
| 32 | + "1. 找个位置:\n", |
| 33 | + "`git clone --recursive https://github.com/dmlc/xgboost`\n", |
| 34 | + "2. `cd xgboost/` `mkdir build` `cd build` `cmake .. -DUSE_CUDA=ON` `make -j4`\n", |
| 35 | + "3. 进入虚拟环境,运行`cd xgboost\\python-package\\` `sudo apt-get install python-setuptools` `sudo -s` `python setup.py install`\n", |
| 36 | + "4. 检测`cd xgboost\\demo\\gpu_acceleration\\ || python cover_type.py`" |
| 37 | + ] |
| 38 | + } |
| 39 | + ], |
| 40 | + "metadata": { |
| 41 | + "hide_input": false, |
| 42 | + "kernelspec": { |
| 43 | + "display_name": "Python 3", |
| 44 | + "language": "python", |
| 45 | + "name": "python3" |
| 46 | + }, |
| 47 | + "language_info": { |
| 48 | + "codemirror_mode": { |
| 49 | + "name": "ipython", |
| 50 | + "version": 3 |
| 51 | + }, |
| 52 | + "file_extension": ".py", |
| 53 | + "mimetype": "text/x-python", |
| 54 | + "name": "python", |
| 55 | + "nbconvert_exporter": "python", |
| 56 | + "pygments_lexer": "ipython3", |
| 57 | + "version": "3.6.8" |
| 58 | + }, |
| 59 | + "nbTranslate": { |
| 60 | + "displayLangs": [ |
| 61 | + "*" |
| 62 | + ], |
| 63 | + "hotkey": "alt-t", |
| 64 | + "langInMainMenu": true, |
| 65 | + "sourceLang": "en", |
| 66 | + "targetLang": "fr", |
| 67 | + "useGoogleTranslate": true |
| 68 | + }, |
| 69 | + "toc": { |
| 70 | + "base_numbering": 1, |
| 71 | + "nav_menu": {}, |
| 72 | + "number_sections": true, |
| 73 | + "sideBar": true, |
| 74 | + "skip_h1_title": false, |
| 75 | + "title_cell": "Table of Contents", |
| 76 | + "title_sidebar": "Contents", |
| 77 | + "toc_cell": false, |
| 78 | + "toc_position": {}, |
| 79 | + "toc_section_display": true, |
| 80 | + "toc_window_display": false |
| 81 | + }, |
| 82 | + "varInspector": { |
| 83 | + "cols": { |
| 84 | + "lenName": 16, |
| 85 | + "lenType": 16, |
| 86 | + "lenVar": 40 |
| 87 | + }, |
| 88 | + "kernels_config": { |
| 89 | + "python": { |
| 90 | + "delete_cmd_postfix": "", |
| 91 | + "delete_cmd_prefix": "del ", |
| 92 | + "library": "var_list.py", |
| 93 | + "varRefreshCmd": "print(var_dic_list())" |
| 94 | + }, |
| 95 | + "r": { |
| 96 | + "delete_cmd_postfix": ") ", |
| 97 | + "delete_cmd_prefix": "rm(", |
| 98 | + "library": "var_list.r", |
| 99 | + "varRefreshCmd": "cat(var_dic_list()) " |
| 100 | + } |
| 101 | + }, |
| 102 | + "types_to_exclude": [ |
| 103 | + "module", |
| 104 | + "function", |
| 105 | + "builtin_function_or_method", |
| 106 | + "instance", |
| 107 | + "_Feature" |
| 108 | + ], |
| 109 | + "window_display": false |
| 110 | + } |
| 111 | + }, |
| 112 | + "nbformat": 4, |
| 113 | + "nbformat_minor": 2 |
| 114 | +} |
0 commit comments