Class: HybridForest::Trees::ID3Tree

Inherits:
Tree
  • Object
show all
Defined in:
lib/hybridforest/trees/id3_tree.rb

Instance Method Summary collapse

Methods inherited from Tree

#fit, #inspect, #predict

Constructor Details

#initialize(tree_grower: HybridForest::Trees::TreeGrowers::ID3Grower.new) ⇒ ID3Tree

Returns a new instance of ID3Tree.



9
10
11
# File 'lib/hybridforest/trees/id3_tree.rb', line 9

def initialize(tree_grower: HybridForest::Trees::TreeGrowers::ID3Grower.new)
  super(tree_grower: tree_grower)
end

Instance Method Details

#nameObject



13
14
15
# File 'lib/hybridforest/trees/id3_tree.rb', line 13

def name
  "ID3 Tree"
end