Sha256: 10a00ce4e23f8f407343bb6e4f47cc278618e715d7e15a11e9621926bca46f32

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

require_relative "jrb-libsvm/version"
require "java"
require_relative "java/libsvm"

module Libsvm
  java_import "libsvm.Parameter"
  java_import "libsvm.Model"
  java_import "libsvm.Problem"
  java_import "libsvm.Node"
  java_import "libsvm.Svm"

  module CoreExtensions
    module Collection
      def to_example
        Node.features(self)
      end
    end
  end
end

require_relative 'jrb-libsvm/parameter'
require_relative 'jrb-libsvm/model'
require_relative 'jrb-libsvm/node'
require_relative 'jrb-libsvm/problem'

class Hash
  include Libsvm::CoreExtensions::Collection
end
class Array
  include Libsvm::CoreExtensions::Collection
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jrb-libsvm-0.1.2-java lib/jrb-libsvm.rb