Class: DecisionTree::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/decisiontree/id3_tree.rb

Instance Attribute Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



36
37
38
# File 'lib/decisiontree/id3_tree.rb', line 36

def attribute
  @attribute
end

#gainObject

Returns the value of attribute gain

Returns:

  • (Object)

    the current value of gain



36
37
38
# File 'lib/decisiontree/id3_tree.rb', line 36

def gain
  @gain
end

#thresholdObject

Returns the value of attribute threshold

Returns:

  • (Object)

    the current value of threshold



36
37
38
# File 'lib/decisiontree/id3_tree.rb', line 36

def threshold
  @threshold
end