Sha256: c4cf96f5c22e1e316205f77c5c33a4b2a425547012efe093c9f6e00cec04aebd
Contents?: true
Size: 572 Bytes
Versions: 4
Compression:
Stored size: 572 Bytes
Contents
# dependencies require "ffi" # stdlib require "csv" require "fileutils" require "tempfile" # modules require "xlearn/utils" require "xlearn/dmatrix" require "xlearn/model" require "xlearn/ffm" require "xlearn/fm" require "xlearn/linear" require "xlearn/version" module XLearn class Error < StandardError; end class << self attr_accessor :ffi_lib end lib_name = FFI.map_library_name("xlearn_api") vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__) self.ffi_lib = [vendor_lib] # friendlier error message autoload :FFI, "xlearn/ffi" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xlearn-0.1.5 | lib/xlearn.rb |
xlearn-0.1.4 | lib/xlearn.rb |
xlearn-0.1.3 | lib/xlearn.rb |
xlearn-0.1.2 | lib/xlearn.rb |