Merge pull request #10 from havenwood/patch-1

Added missing closing paren to example.
This commit is contained in:
Ilya Grigorik
2013-04-03 11:34:34 -07:00

View File

@@ -58,7 +58,7 @@ training = [
dec_tree = DecisionTree::ID3Tree.new(labels, data, "not angry", color: :discrete, hunger: :continuous)
dec_tree.train
decision = dec_tree.predict([7, "red"]
decision = dec_tree.predict([7, "red"])
puts "Predicted: #{decision} ... True decision: #{test.last}";
```