Sha256: 834eea58f2fb67b101f75c9086f4434be00e3ec8d301eda6534c2a304f2aece0
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
# stdlib require "fiddle/import" require "fileutils" require "tempfile" # modules require "thundersvm/model" require "thundersvm/classifier" require "thundersvm/regressor" require "thundersvm/version" module ThunderSVM class Error < StandardError; end class << self attr_accessor :ffi_lib end self.ffi_lib = ["libthundersvm.so", "libthundersvm.dylib", "thundersvm.dll"] # friendlier error message autoload :FFI, "thundersvm/ffi" def self.load_model(path) model = Model.new model.load_model(path) model end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thundersvm-0.1.0 | lib/thundersvm.rb |