Skip to content

Commit

Permalink
Updated LightGBM to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jul 20, 2023
1 parent 660d6e3 commit c50798f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 0.3.0 (unreleased)

- Updated LightGBM to 4.0.0
- Fixed error with `dup` and `clone`
- Dropped support for Ruby < 3

Expand Down
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def download_file(file, sha256)
require "open-uri"

# also update licenses in vendor/
version = "3.3.5"
version = "4.0.0"

url =
if file == "lib_lightgbm.arm64.dylib"
Expand All @@ -45,16 +45,16 @@ end
# https://github.com/microsoft/LightGBM/releases
namespace :vendor do
task :linux do
download_file("lib_lightgbm.so", "643f120154a5f72f50add9776f606db1e8ad401f975d8495552d15e1c8d72515")
download_file("lib_lightgbm.so", "97e8f4fda11f9546aac6a00b9f787754c372f5f2b1668b45c4f3b6f17dc7a855")
end

task :mac do
download_file("lib_lightgbm.dylib", "6eb9ddf9d45d4af9f7a33692e572d9eaac4f3e4dbcf3a9aba9251cf4d0918122")
download_file("lib_lightgbm.arm64.dylib", "eb6e809b22ef7c09dcfcfda028b3fd229a6e409437df25a741c69021d224d5af")
download_file("lib_lightgbm.dylib", "d4415026f3c02ac40c1b85e87646c70cf0da8c6bb6446a24c01b6a5cd58eee7e")
download_file("lib_lightgbm.arm64.dylib", "6f00e3b734ed5f5495d8837324c4ef717b858b7205267c1b1c9b43d8b0bd823a")
end

task :windows do
download_file("lib_lightgbm.dll", "41dcd97e02e2af695ebc9bf791c77a40a7e6961ef357fea91ca16ab021509013")
download_file("lib_lightgbm.dll", "52fbbdc0ccd4cfac9e5f7340cc349b93810f59d4791ec3d91dd8ac9fbe55197f")
end

task all: [:linux, :mac, :windows]
Expand Down
2 changes: 1 addition & 1 deletion lib/lightgbm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class << self
"lib_lightgbm.#{::FFI::Platform::LIBSUFFIX}"
end
vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
self.ffi_lib = [lib_name, "lib_lightgbm.so", vendor_lib]
self.ffi_lib = [vendor_lib]

# friendlier error message
autoload :FFI, "lightgbm/ffi"
Expand Down
6 changes: 3 additions & 3 deletions vendor/LICENSE-THIRD-PARTY
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
================================================================================
Boost.Compute 1.70.0
Boost.Compute 1.78.0
================================================================================

Boost Software License - Version 1.0 - August 17th, 2003
Expand Down Expand Up @@ -27,7 +27,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

================================================================================
Eigen 8ba1b0f41
Eigen 3.4.0
================================================================================

Source code available at https://gitlab.com/libeigen/eigen
Expand Down Expand Up @@ -466,7 +466,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

================================================================================
fmt 7.1.2
fmt 8.1.1
================================================================================

Copyright (c) 2012 - present, Victor Zverovich
Expand Down

0 comments on commit c50798f

Please sign in to comment.