mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 23:24:53 +00:00
Merge pull request #6 from superchris/master
Fix graphing continuous attribute
This commit is contained in:
@@ -186,7 +186,7 @@ module DecisionTree
|
|||||||
child = attr[1][key]
|
child = attr[1][key]
|
||||||
child_text = "#{child}\n(#{child.to_s.clone.object_id})"
|
child_text = "#{child}\n(#{child.to_s.clone.object_id})"
|
||||||
end
|
end
|
||||||
label_text = "#{key} #{@type == :continuous ? attr[0].threshold : ""}"
|
label_text = "#{key} #{type(attr[0].attribute) == :continuous ? attr[0].threshold : ""}"
|
||||||
|
|
||||||
[parent_text, child_text, label_text]
|
[parent_text, child_text, label_text]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user