Class: SvmToolkit::Node
- Inherits:
-
Object
- Object
- SvmToolkit::Node
- Defined in:
- lib/svm_toolkit/node.rb
Overview
Extends the Java Node class.
Node is used to store the index/value pair for an individual feature of an instance.
Instance Method Summary collapse
-
#initialize(index, value) ⇒ Node
constructor
- Constructor: index
-
Index of this node in feature set.
Constructor Details
#initialize(index, value) ⇒ Node
Constructor:
- index
-
Index of this node in feature set.
- value
-
Value of this node in feature set.
13 14 15 16 17 |
# File 'lib/svm_toolkit/node.rb', line 13 def initialize(index, value) super() self.index = index self.value = value end |