mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 15:14:52 +00:00
Added missing closing paren to example.
This commit is contained in:
@@ -58,7 +58,7 @@ training = [
|
|||||||
dec_tree = DecisionTree::ID3Tree.new(labels, data, "not angry", color: :discrete, hunger: :continuous)
|
dec_tree = DecisionTree::ID3Tree.new(labels, data, "not angry", color: :discrete, hunger: :continuous)
|
||||||
dec_tree.train
|
dec_tree.train
|
||||||
|
|
||||||
decision = dec_tree.predict([7, "red"]
|
decision = dec_tree.predict([7, "red"])
|
||||||
puts "Predicted: #{decision} ... True decision: #{test.last}";
|
puts "Predicted: #{decision} ... True decision: #{test.last}";
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user