xgb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea879f0494a877766dd500203b7f4ec091607a0a0cae609bc3be50fb134b87eb
4
- data.tar.gz: 1ff52f49405628aa837f4f6ff1558b4b1a624a311b4c359c0a0703499613d35d
3
+ metadata.gz: 79a40c703992619e8f834ff11e8eff704b96bf5eb0af8a47b4d0ab410cb68fff
4
+ data.tar.gz: a8924ce9e90ee78d7ad4c98ae659f83e68155dfb5c1e3fcbed4797053c266922
5
5
  SHA512:
6
- metadata.gz: cd2dcbbc2300bbb5900ae1cdf8abe47fd2c0f0c8dc1b825f53c5988450405298e5b8693be243ed351f7f14715e9f5963eb7c00cd39c1b25983b449398804e6f5
7
- data.tar.gz: 969c4472a3926f8cd6569269817086ed047e4e64132fd92ab1bb78ab5e8f294c3a4342cfc4e121b8a2866b8f534d1ffaa35b806d9968f198f87bb4de06a64348
6
+ metadata.gz: 2401d7accb4a2709c0ee0a9fd76b451bff641775fbe16f884de7b3a1288c7e210b1e3ea1b7b76734f8ff29aa9eac59ab161bb06b92340c7e7744ddf58fb8a8ae
7
+ data.tar.gz: a256ab14fa84e7b10f54b7f465ccf0b261c1e7854ae85e1715e13e8d591a4fa756d5a2892e4783e2549cf6d9f29ab061438035ba305f7ab23e86341d53effb4a
@@ -1,3 +1,8 @@
1
+ ## 0.2.1 (2020-02-11)
2
+
3
+ - Fixed `Could not find XGBoost` error on some Linux platforms
4
+ - Fixed `SignalException` on Windows
5
+
1
6
  ## 0.2.0 (2020-01-26)
2
7
 
3
8
  - Prefer `XGBoost` over `Xgb`
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
- [![Build Status](https://travis-ci.org/ankane/xgboost.svg?branch=master)](https://travis-ci.org/ankane/xgboost)
5
+ [![Build Status](https://travis-ci.org/ankane/xgboost.svg?branch=master)](https://travis-ci.org/ankane/xgboost) [![Build status](https://ci.appveyor.com/api/projects/status/s8umwyuahvj68m6p/branch/master?svg=true)](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 [master]
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 Learning for Ruby
154
+ - [Eps](https://github.com/ankane/eps) - Machine learning for Ruby
159
155
 
160
156
  ## Credits
161
157
 
162
- Thanks to the [xgboost](https://github.com/PairOnAir/xgboost-ruby) gem for serving as an initial reference.
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 and testing:
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
  ```
@@ -2,12 +2,7 @@ module XGBoost
2
2
  module FFI
3
3
  extend ::FFI::Library
4
4
 
5
- begin
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
@@ -1,3 +1,3 @@
1
1
  module XGBoost
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
Binary file
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.0
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-01-27 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi