Sha256: bead6ec0395b56feb86ebed9a719616f57e7bf2d10babed69e49de0ca1b07868

Contents?: true

Size: 338 Bytes

Versions: 2

Compression:

Stored size: 338 Bytes

Contents

require 'rb-libsvm/version'
require 'rb-libsvm/libsvm'
require 'libsvm/node'

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


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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rb-libsvm-1.0.7 lib/libsvm.rb
rb-libsvm-1.0.6 lib/libsvm.rb