Class: SvmToolkit::Node
- Inherits:
-
Object
- Object
- SvmToolkit::Node
- 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
-
#initialize(index, value) ⇒ Node
constructor
Constructor accepts index and value of this node in feature set.
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 |