xgb 0.11.0 → 0.12.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5fd1670cc6fc20a352e85facd9abb1923195c14022e7f909fc588217e758973
4
- data.tar.gz: 9bfe06f330635d6f4f5bbf71223be5a7d2f4891e394c12f697a10a18215bf694
3
+ metadata.gz: a10b598ef7b5d8506cd81eae295baf41b19f9306d7a44c8648586e412fb3b43f
4
+ data.tar.gz: 0107c1a5e48243d0012d82f6a6e5abecb87fa8c85e88445262668a60ecf44372
5
5
  SHA512:
6
- metadata.gz: 90fe5e7cc050bf8d8a2079974501cb50ac886bcb1482160afca50c1cf598d836b59c324630cf00236ac8e089fe57fb618335dde4c9a22dd3d4a5bc7fd031f41c
7
- data.tar.gz: 4d87ee477501874f53633c286bec193da8f731f7e14f3f9008ed2da68fd7e3f3f594c25bc47d8f940813546208ff50981731ab67204d140c0a9cdebba6727565
6
+ metadata.gz: 896121e29589a202738c2a268901fb38a268c03159e2185605ed434f8789cc2de659470ef99657faad301cfe13245624ee212d6b03387e2805c81962e24b0163
7
+ data.tar.gz: 3b3e8150d05027c6dc7221d19058255a8e2245ba9bd4620569f7304213456451a9e1709b307d0619d1ac3517e6cf0c5830b8887410b2da7fc8befef347302fc3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.12.0 (2026-06-17)
2
+
3
+ - Updated XGBoost to 3.3.0
4
+ - Dropped support for Daru
5
+ - Dropped support for Ruby < 3.3
6
+
7
+ ## 0.11.1 (2026-02-14)
8
+
9
+ - Updated XGBoost to 3.2.0
10
+
1
11
  ## 0.11.0 (2025-10-18)
2
12
 
3
13
  - Updated XGBoost to 3.1.0
data/README.md CHANGED
@@ -45,13 +45,13 @@ booster.predict(dtest)
45
45
  Save the model to a file
46
46
 
47
47
  ```ruby
48
- booster.save_model("my.model")
48
+ booster.save_model("model.json")
49
49
  ```
50
50
 
51
51
  Load the model from a file
52
52
 
53
53
  ```ruby
54
- booster = XGBoost::Booster.new(model_file: "my.model")
54
+ booster = XGBoost::Booster.new(model_file: "model.json")
55
55
  ```
56
56
 
57
57
  Get the importance of features
@@ -108,13 +108,13 @@ model.predict(x)
108
108
  Save the model to a file
109
109
 
110
110
  ```ruby
111
- model.save_model("my.model")
111
+ model.save_model("model.json")
112
112
  ```
113
113
 
114
114
  Load the model from a file
115
115
 
116
116
  ```ruby
117
- model.load_model("my.model")
117
+ model.load_model("model.json")
118
118
  ```
119
119
 
120
120
  Get the importance of features
@@ -150,12 +150,6 @@ Or a Rover data frame
150
150
  Rover.read_csv("houses.csv")
151
151
  ```
152
152
 
153
- Or a Daru data frame
154
-
155
- ```ruby
156
- Daru::DataFrame.from_csv("houses.csv")
157
- ```
158
-
159
153
  ## Helpful Resources
160
154
 
161
155
  - [Parameters](https://xgboost.readthedocs.io/en/latest/parameter.html)
@@ -14,21 +14,6 @@ module XGBoost
14
14
  nrow = data.row_count
15
15
  ncol = data.column_count
16
16
  flat_data = data.to_a.flatten
17
- elsif daru?(data)
18
- nrow, ncol = data.shape
19
- flat_data = data.map_rows(&:to_a).flatten
20
- feature_names = data.each_vector.map(&:name)
21
- feature_types =
22
- data.each_vector.map(&:db_type).map do |v|
23
- case v
24
- when "INTEGER"
25
- "int"
26
- when "DOUBLE"
27
- "float"
28
- else
29
- raise Error, "Unknown feature type: #{v}"
30
- end
31
- end
32
17
  elsif numo?(data)
33
18
  nrow, ncol = data.shape
34
19
  elsif rover?(data)
@@ -284,10 +269,6 @@ module XGBoost
284
269
  defined?(Matrix) && data.is_a?(Matrix)
285
270
  end
286
271
 
287
- def daru?(data)
288
- defined?(Daru::DataFrame) && data.is_a?(Daru::DataFrame)
289
- end
290
-
291
272
  def numo?(data)
292
273
  defined?(Numo::NArray) && data.is_a?(Numo::NArray)
293
274
  end
@@ -1,3 +1,3 @@
1
1
  module XGBoost
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xgb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -78,14 +78,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '3.2'
81
+ version: '3.3'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.6.9
88
+ rubygems_version: 4.0.14
89
89
  specification_version: 4
90
90
  summary: High performance gradient boosting for Ruby
91
91
  test_files: []