lightgbm 0.4.1 → 0.4.3

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: f33ce6cd6f5c99b5227aaab5b76a97827dd46354de058b21fcbd19e2835167bc
4
- data.tar.gz: cc45ed02c4e07adfab3676d0bd076a6c3e3fbf9904e36d8a8576734447382ae6
3
+ metadata.gz: d0c42d69854c9e3378493bc9efecf15f4798b8e9b1ec3dca834721cdc8767969
4
+ data.tar.gz: 9f8533a34a6c75be56c4736f3cb6428ba64b906e017f9461baf3207b06c575ca
5
5
  SHA512:
6
- metadata.gz: 70ddf6cf10bb3bd7e3c41403548b9b99f5b10df38baf42261744ce33c12a6d36e0f633ba1c7e8129cde4540f78f0357fadeb1a1f5acedd2b87a4825decfc3af3
7
- data.tar.gz: ca56120cb9430526b097a402247be4eb9911b427d189284513815a04a6bd4a32b1da219b27cc5a3a4c1775510f92e4fdc9ff78f9884216fcb4a2aaa18496437e
6
+ metadata.gz: b1f91710f1258e11729c609ccab0234c5ca049b268fa691482638062dd05fec0dca0f9aefeb9ec43ec7a1b9d00c2d408d022ac54f1a1915a3696c5edf4fa5c8d
7
+ data.tar.gz: 5cc3a7a45d68f8f0202d5d6dadd3d403f85aa23a86398579ede296fe8a9ecd524872a13fa1c266ea64e6320575e27ce83a7809a4e246e1c4695039998085a669
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.4.3 (2025-06-26)
2
+
3
+ - Added ARM shared library for Linux
4
+
5
+ ## 0.4.2 (2025-06-23)
6
+
7
+ - Improved performance of `predict` method for `pandas_categorical`
8
+
1
9
  ## 0.4.1 (2025-02-17)
2
10
 
3
11
  - Updated LightGBM to 4.6.0
@@ -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.1"
2
+ VERSION = "0.4.3"
3
3
  end
data/lib/lightgbm.rb CHANGED
@@ -24,7 +24,7 @@ module LightGBM
24
24
  attr_accessor :ffi_lib
25
25
  end
26
26
  lib_name =
27
- if RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
27
+ if !::FFI::Platform.windows? && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
28
28
  "lib_lightgbm.arm64.#{::FFI::Platform::LIBSUFFIX}"
29
29
  else
30
30
  "lib_lightgbm.#{::FFI::Platform::LIBSUFFIX}"
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.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-17 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
@@ -45,6 +45,7 @@ files:
45
45
  - vendor/LICENSE
46
46
  - vendor/LICENSE-THIRD-PARTY
47
47
  - vendor/lib_lightgbm.arm64.dylib
48
+ - vendor/lib_lightgbm.arm64.so
48
49
  - vendor/lib_lightgbm.dll
49
50
  - vendor/lib_lightgbm.dylib
50
51
  - vendor/lib_lightgbm.so
@@ -66,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
67
  - !ruby/object:Gem::Version
67
68
  version: '0'
68
69
  requirements: []
69
- rubygems_version: 3.6.2
70
+ rubygems_version: 3.6.7
70
71
  specification_version: 4
71
72
  summary: High performance gradient boosting for Ruby
72
73
  test_files: []