Sha256: 5435a79c6162bf29284e214c2593d349db6f9590f3ebb1e157d57b6a268ffba1

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

module LightGBM
  module FFI
    extend ::FFI::Library
    ffi_lib ["lightgbm", "lib_lightgbm.so"]

    # https://github.com/microsoft/LightGBM/blob/master/include/LightGBM/c_api.h
    attach_function :LGBM_GetLastError, %i[], :string
    attach_function :LGBM_BoosterCreate, %i[pointer string pointer], :int
    attach_function :LGBM_BoosterCreateFromModelfile, %i[string pointer pointer], :int
    attach_function :LGBM_BoosterFree, %i[pointer], :int
    attach_function :LGBM_BoosterPredictForMat, %i[pointer pointer int int32 int32 int int int string pointer pointer], :int
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lightgbm-0.1.0 lib/lightgbm/ffi.rb