Class: SvmToolkit::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/svm_toolkit/node.rb

Overview

Used to store the index/value pair for an individual feature of an instance.

Instance Method Summary collapse

Constructor Details

#initialize(index, value) ⇒ Node

Constructor accepts index and value of this node in feature set.



9
10
11
12
13
# File 'lib/svm_toolkit/node.rb', line 9

def initialize(index, value)
  super()
  self.index = index
  self.value = value
end