1234567891011121314151617181920212223242526272829303132 |
- # This file is part of svm_toolkit.
- #
- # Author:: Peter Lane
- # Copyright:: Copyright 2011-13, Peter Lane.
- # License:: MIT License
- #
- module SvmToolkit
- #
- # Node is used to store the index/value pair for an individual
- # feature of an instance.
- #
- class Node
- # :attr_accessor: index
- # Index of this node in feature set.
- # :attr_accessor: value
- # Value of this node in feature set.
- #
- def initialize(index, value)
- super()
- self.index = index
- self.value = value
- end
- end
- end
|