Class: DecisionTree::ID3Tree::Node

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

Instance Attribute Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



19
20
21
# File 'lib/decision_tree/id3_tree.rb', line 19

def attribute
  @attribute
end

#gainObject

Returns the value of attribute gain

Returns:

  • (Object)

    the current value of gain



19
20
21
# File 'lib/decision_tree/id3_tree.rb', line 19

def gain
  @gain
end

#thresholdObject

Returns the value of attribute threshold

Returns:

  • (Object)

    the current value of threshold



19
20
21
# File 'lib/decision_tree/id3_tree.rb', line 19

def threshold
  @threshold
end