lib/lightgbm.rb in lightgbm-0.2.7 vs lib/lightgbm.rb in lightgbm-0.3.0
- old
+ new
@@ -1,19 +1,19 @@
# dependencies
require "ffi"
# modules
-require "lightgbm/utils"
-require "lightgbm/booster"
-require "lightgbm/dataset"
-require "lightgbm/version"
+require_relative "lightgbm/utils"
+require_relative "lightgbm/booster"
+require_relative "lightgbm/dataset"
+require_relative "lightgbm/version"
# scikit-learn API
-require "lightgbm/model"
-require "lightgbm/classifier"
-require "lightgbm/ranker"
-require "lightgbm/regressor"
+require_relative "lightgbm/model"
+require_relative "lightgbm/classifier"
+require_relative "lightgbm/ranker"
+require_relative "lightgbm/regressor"
module LightGBM
class Error < StandardError; end
class << self
@@ -24,10 +24,10 @@
"lib_lightgbm.arm64.#{::FFI::Platform::LIBSUFFIX}"
else
"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"
class << self