xgb 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -9
- data/lib/xgboost/ffi.rb +1 -6
- data/lib/xgboost/version.rb +1 -1
- data/vendor/libxgboost.so +0 -0
- data/vendor/xgboost.dll +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79a40c703992619e8f834ff11e8eff704b96bf5eb0af8a47b4d0ab410cb68fff
|
|
4
|
+
data.tar.gz: a8924ce9e90ee78d7ad4c98ae659f83e68155dfb5c1e3fcbed4797053c266922
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2401d7accb4a2709c0ee0a9fd76b451bff641775fbe16f884de7b3a1288c7e210b1e3ea1b7b76734f8ff29aa9eac59ab161bb06b92340c7e7744ddf58fb8a8ae
|
|
7
|
+
data.tar.gz: a256ab14fa84e7b10f54b7f465ccf0b261c1e7854ae85e1715e13e8d591a4fa756d5a2892e4783e2549cf6d9f29ab061438035ba305f7ab23e86341d53effb4a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[XGBoost](https://github.com/dmlc/xgboost) - high performance gradient boosting - for Ruby
|
|
4
4
|
|
|
5
|
-
[](https://travis-ci.org/ankane/xgboost)
|
|
5
|
+
[](https://travis-ci.org/ankane/xgboost) [](https://ci.appveyor.com/project/ankane/xgboost/branch/master)
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -12,10 +12,6 @@ Add this line to your application’s Gemfile:
|
|
|
12
12
|
gem 'xgb'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
## Getting Started
|
|
16
|
-
|
|
17
|
-
This library follows the [Python API](https://xgboost.readthedocs.io/en/latest/python/python_api.html), with the `get_` and `set_` prefixes removed from methods to make it more Ruby-like.
|
|
18
|
-
|
|
19
15
|
## Learning API
|
|
20
16
|
|
|
21
17
|
Prep your data
|
|
@@ -70,7 +66,7 @@ CV
|
|
|
70
66
|
XGBoost.cv(params, dtrain, nfold: 3, verbose_eval: true)
|
|
71
67
|
```
|
|
72
68
|
|
|
73
|
-
Set metadata about a model
|
|
69
|
+
Set metadata about a model
|
|
74
70
|
|
|
75
71
|
```ruby
|
|
76
72
|
booster["key"] = "value"
|
|
@@ -155,11 +151,13 @@ Numo::DFloat.new(3, 2).seq
|
|
|
155
151
|
## Related Projects
|
|
156
152
|
|
|
157
153
|
- [LightGBM](https://github.com/ankane/lightgbm) - LightGBM for Ruby
|
|
158
|
-
- [Eps](https://github.com/ankane/eps) - Machine
|
|
154
|
+
- [Eps](https://github.com/ankane/eps) - Machine learning for Ruby
|
|
159
155
|
|
|
160
156
|
## Credits
|
|
161
157
|
|
|
162
|
-
|
|
158
|
+
This library follows the [Python API](https://xgboost.readthedocs.io/en/latest/python/python_api.html), with the `get_` and `set_` prefixes removed from methods to make it more Ruby-like.
|
|
159
|
+
|
|
160
|
+
Thanks to the [xgboost](https://github.com/PairOnAir/xgboost-ruby) gem for showing how to use FFI.
|
|
163
161
|
|
|
164
162
|
## History
|
|
165
163
|
|
|
@@ -174,11 +172,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
|
|
|
174
172
|
- Write, clarify, or fix documentation
|
|
175
173
|
- Suggest or add new features
|
|
176
174
|
|
|
177
|
-
To get started with development
|
|
175
|
+
To get started with development:
|
|
178
176
|
|
|
179
177
|
```sh
|
|
180
178
|
git clone https://github.com/ankane/xgboost.git
|
|
181
179
|
cd xgboost
|
|
182
180
|
bundle install
|
|
181
|
+
bundle exec rake vendor:all
|
|
183
182
|
bundle exec rake test
|
|
184
183
|
```
|
data/lib/xgboost/ffi.rb
CHANGED
|
@@ -2,12 +2,7 @@ module XGBoost
|
|
|
2
2
|
module FFI
|
|
3
3
|
extend ::FFI::Library
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
ffi_lib XGBoost.ffi_lib
|
|
7
|
-
rescue LoadError => e
|
|
8
|
-
raise e if ENV["XGB_DEBUG"]
|
|
9
|
-
raise LoadError, "Could not find XGBoost"
|
|
10
|
-
end
|
|
5
|
+
ffi_lib XGBoost.ffi_lib
|
|
11
6
|
|
|
12
7
|
# https://github.com/dmlc/xgboost/blob/master/include/xgboost/c_api.h
|
|
13
8
|
# keep same order
|
data/lib/xgboost/version.rb
CHANGED
data/vendor/libxgboost.so
CHANGED
|
Binary file
|
data/vendor/xgboost.dll
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xgb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|