lightgbm 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/lightgbm.rb +6 -1
- data/lib/lightgbm/ffi.rb +1 -1
- data/lib/lightgbm/version.rb +1 -1
- data/vendor/lib_lightgbm.arm64.dylib +0 -0
- metadata +4 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fb9ecd85bab15bf4edcf200de81cb1d4a70a743810ca67ca77e28c957d492c8
|
4
|
+
data.tar.gz: 56b063a0ba3f1a2db796e701f5e1d96625b4f03340defd540b160552aa24e577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69085b60d683816b9286f504c7901b969d8070d0fe3e8dacc7efd4beff99cdf0fca9f094b45235cb4119ea8a19e570c0463d8a21d947f6c0c412c3b41bc1f6a9
|
7
|
+
data.tar.gz: 3e5274aefd850b3590cedbb58e09c96152fe0c166f6a929b373c850fd3c39ee3fcbfdd4b5609c8da22dd019dca1658f6784c5b6e2bd1cc5791507ee10617d57c
|
data/CHANGELOG.md
CHANGED
data/lib/lightgbm.rb
CHANGED
@@ -19,7 +19,12 @@ module LightGBM
|
|
19
19
|
class << self
|
20
20
|
attr_accessor :ffi_lib
|
21
21
|
end
|
22
|
-
lib_name =
|
22
|
+
lib_name =
|
23
|
+
if RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm/i
|
24
|
+
"lib_lightgbm.arm64.#{::FFI::Platform::LIBSUFFIX}"
|
25
|
+
else
|
26
|
+
"lib_lightgbm.#{::FFI::Platform::LIBSUFFIX}"
|
27
|
+
end
|
23
28
|
vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
|
24
29
|
self.ffi_lib = [lib_name, "lib_lightgbm.so", vendor_lib]
|
25
30
|
|
data/lib/lightgbm/ffi.rb
CHANGED
@@ -5,7 +5,7 @@ module LightGBM
|
|
5
5
|
begin
|
6
6
|
ffi_lib LightGBM.ffi_lib
|
7
7
|
rescue LoadError => e
|
8
|
-
if e.message.include?("Library not loaded: /
|
8
|
+
if ["/usr/local", "/opt/homebrew"].any? { |v| e.message.include?("Library not loaded: #{v}/opt/libomp/lib/libomp.dylib") } && e.message.include?("Reason: image not found")
|
9
9
|
raise LoadError, "OpenMP not found. Run `brew install libomp`"
|
10
10
|
else
|
11
11
|
raise e
|
data/lib/lightgbm/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightgbm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -24,62 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: daru
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
27
|
description:
|
84
28
|
email: andrew@chartkick.com
|
85
29
|
executables: []
|
@@ -100,6 +44,7 @@ files:
|
|
100
44
|
- lib/lightgbm/utils.rb
|
101
45
|
- lib/lightgbm/version.rb
|
102
46
|
- vendor/LICENSE
|
47
|
+
- vendor/lib_lightgbm.arm64.dylib
|
103
48
|
- vendor/lib_lightgbm.dll
|
104
49
|
- vendor/lib_lightgbm.dylib
|
105
50
|
- vendor/lib_lightgbm.so
|
@@ -122,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
67
|
- !ruby/object:Gem::Version
|
123
68
|
version: '0'
|
124
69
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.2.3
|
126
71
|
signing_key:
|
127
72
|
specification_version: 4
|
128
73
|
summary: High performance gradient boosting for Ruby
|