lightgbm:Ruby的高性能梯度提升

上传者: 42131785 | 上传时间: 2023-03-06 19:44:59 | 文件大小: 62KB | 文件类型: ZIP
轻型GBM 高性能渐变增强-适用于Ruby 安装 将此行添加到您的应用程序的Gemfile中: gem 'lightgbm' 在Mac上,还要安装OpenMP: brew install libomp 培训API 准备数据 x = [ [ 1 , 2 ] , [ 3 , 4 ] , [ 5 , 6 ] , [ 7 , 8 ] ] y = [ 1 , 2 , 3 , 4 ] 训练模型 params = { objective : "regression" } train_set = LightGBM :: Dataset . new ( x , label : y ) booster = LightGBM . train ( params , train_set ) 预测 booster . predict ( x ) 将模型保存到文件 booster . save_mode

文件下载

资源详情

[{"title":"( 35 个子文件 62KB ) lightgbm:Ruby的高性能梯度提升","children":[{"title":"lightgbm-master","children":[{"title":"vendor","children":[{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"Rakefile <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"build.yml <span style='color:#111;'> 639B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"regressor_test.rb <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"classifier_test.rb <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"test_helper.rb <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"support","children":[{"title":"data.csv <span style='color:#111;'> 7.83KB </span>","children":null,"spread":false},{"title":"booster.py <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"train.py <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"classifier.py <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"cv.py <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"regressor.py <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"model.txt <span style='color:#111;'> 110.66KB </span>","children":null,"spread":false},{"title":"ranker.py <span style='color:#111;'> 384B </span>","children":null,"spread":false}],"spread":true},{"title":"cv_test.rb <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"ranker_test.rb <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"booster_test.rb <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"dataset_test.rb <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"train_test.rb <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"Gemfile <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 103B </span>","children":null,"spread":false},{"title":"lightgbm.gemspec <span style='color:#111;'> 557B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"lightgbm","children":[{"title":"ffi.rb <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"utils.rb <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"booster.rb <span style='color:#111;'> 7.43KB </span>","children":null,"spread":false},{"title":"classifier.rb <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"dataset.rb <span style='color:#111;'> 5.97KB </span>","children":null,"spread":false},{"title":"model.rb <span style='color:#111;'> 672B </span>","children":null,"spread":false},{"title":"ranker.rb <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"regressor.rb <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"version.rb <span style='color:#111;'> 40B </span>","children":null,"spread":false}],"spread":true},{"title":"lightgbm.rb <span style='color:#111;'> 6.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.29KB </span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明