mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-27 22:54:52 +00:00
Broke graphing tree with continuous attributes
This commit is contained in:
@@ -186,7 +186,7 @@ module DecisionTree
|
||||
child = attr[1][key]
|
||||
child_text = "#{child}\n(#{child.to_s.clone.object_id})"
|
||||
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]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user