当前位置:网站首页>[AI practice] xgbgressor model accelerates training and uses GPU to train xgbgressor in seconds
[AI practice] xgbgressor model accelerates training and uses GPU to train xgbgressor in seconds
2022-06-23 07:14:00 【szZack】
XGBRegressor Model acceleration training , Use GPU Second training XGBRegressor
Machine learning model
XGBRegressorEnvironmental Science
- Ubuntu 18.04
- python3.6.9
- TensorFlow 2.4.2
- cuda 11.0
- xgboost 1.5.2
Core code
x, y = load_data()
model = xgb.XGBRegressor(learning_rate=0.05,
n_estimators=420,
max_depth=3,
min_child_weight=1,
gamma=0.0,
subsample=0.8,
colsample_bytree=0.8,
scale_pos_weight=0.8,
seed=42,
tree_method='gpu_hist',
gpu_id=3)
output = model.fit(x, y)
stay 2 Millions of data 34.344 s:
real 0m34.344s
user 4m46.866s
sys 0m22.178s
among , Important parameters :
tree_method='gpu_hist'
gpu_id=3 Indicates using the 3 block gpu
边栏推荐
猜你喜欢

Traversal of binary tree and related knowledge

TensorFlow中的数据类型

MySQL(八) — 执行计划(Explain)详解

excel高级绘图技巧100讲(八)-Excel绘制WIFI图

Configuration and compilation of mingw-w64, msys and ffmpeg

PSP code implementation

MySQL mvcc multi version concurrency control

产品-Axure9(英文版),原型设计 制作下拉二级菜单

闫氏DP分析法

C language learning summary
随机推荐
Mysql(十一) — MySQL面试题整理
.h5文件忘记数据库名字,使用h5py打印
聚焦行业,赋能客户 | 博云容器云产品族五大行业解决方案发布
About professional attitude
900. RLE 迭代器
NTU-RGBD数据集下载及数据格式解析
898. subarray bitwise OR operation
322. change exchange
【***数组***】
对二进制的某一位操作
Page embedded iframe click browser back problem
Project_ Filter to solve Chinese garbled code
Deeplab V3 code structure diagram
C DPI adaptation problem
GIS实战应用案例100篇(七十九)-多规整合底图的制作要点
407 stack and queue (232. implementing queue with stack, 225. implementing stack with queue)
数据库原理实验测试题,关于图书分类表
GINet
产品-Axure9(英文版),原型设计后台动态二级菜单显示内容
How to migrate virtual machines from VirtualBox to hype-v