lightgbm 0.4.0 → 0.4.2

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: 4fadfa7ea250cf7c48f076effb5ce8f5db3cf0c8ab87bb04f2033457a502721a
4
- data.tar.gz: 3af4cac369a3c684bdb387036845eca04747c14c8e12c9b38625e5c38130de74
3
+ metadata.gz: 64101c493236ac58ca8b8f97ecf1c70ba43015b5b887acdd5cfbed81b774150c
4
+ data.tar.gz: 431e9dcb0195569c789cab6a7d0965d376e7f8a0cb9180b91ef15bffc01687da
5
5
  SHA512:
6
- metadata.gz: 21fb7ae25e1f085cd3642bb02ce32f8378f5d6013f6e8504b86586c86dfaf5c29b12d83b10e3bfd747a3dbfc996eb8473c12313ca5e2f4302554b0a6c40261e3
7
- data.tar.gz: 75d7b3cea373adedbe8a6cc7c9f0b47f473ac0e77126779efd2f5ab1899596f4a8a926e1d97b033e5cb6e43b0c0f3706e8e7eb9f280d29354ba18792e2f4078b
6
+ metadata.gz: f5dee99b1867e74d6fd8fce92cde1edb91e933a9cc1aee909dba1c1e42b6c52f1627142c861660b0110b9fb72de3b55efe3d58ba3fc49fa9a87ed06efe4ccc91
7
+ data.tar.gz: 14863d6bd6f46b5df05c073c25a16c6358941fd1a480c43548257dc46124424e1280dfd5d9d431bd96b267003b0bd02d2e9d12fa1359bd3d9fa029a99ae68388
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.4.2 (2025-06-23)
2
+
3
+ - Improved performance of `predict` method for `pandas_categorical`
4
+
5
+ ## 0.4.1 (2025-02-17)
6
+
7
+ - Updated LightGBM to 4.6.0
8
+
1
9
  ## 0.4.0 (2025-01-05)
2
10
 
3
11
  - Added support for different prediction types
@@ -269,7 +269,8 @@ module LightGBM
269
269
  last_line = model_str[idx..].strip
270
270
  end
271
271
  if last_line.start_with?(pandas_key)
272
- JSON.parse(last_line[pandas_key.length..])
272
+ pandas_categorical = JSON.parse(last_line[pandas_key.length..])
273
+ pandas_categorical.map { |cats| cats.each_with_index.to_h }
273
274
  end
274
275
  end
275
276
 
@@ -140,7 +140,7 @@ module LightGBM
140
140
 
141
141
  def apply_pandas_categorical(data, categorical_feature, pandas_categorical)
142
142
  (categorical_feature || []).each_with_index do |cf, i|
143
- cat_codes = pandas_categorical[i].map.with_index.to_h
143
+ cat_codes = pandas_categorical[i]
144
144
  data.each do |r|
145
145
  cat = r[cf]
146
146
  unless cat.nil?
@@ -1,3 +1,3 @@
1
1
  module LightGBM
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -436,7 +436,7 @@ and
436
436
  */
437
437
 
438
438
  ================================================================================
439
- fast_double_parser 0.7.0
439
+ fast_double_parser 0.8.0
440
440
  ================================================================================
441
441
 
442
442
  Copyright (c) Daniel Lemire
@@ -466,7 +466,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
466
466
  DEALINGS IN THE SOFTWARE.
467
467
 
468
468
  ================================================================================
469
- fmt 10.1.1
469
+ fmt 11.1.2
470
470
  ================================================================================
471
471
 
472
472
  Copyright (c) 2012 - present, Victor Zverovich and {fmt} contributors
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightgbm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ffi
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
- rubygems_version: 3.6.2
69
+ rubygems_version: 3.6.7
70
70
  specification_version: 4
71
71
  summary: High performance gradient boosting for Ruby
72
72
  test_files: []