mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 07:04:53 +00:00
Cast threshold to string in gsub
This commit is contained in:
@@ -190,7 +190,7 @@ module DecisionTree
|
|||||||
end
|
end
|
||||||
label_text = "#{key} ''"
|
label_text = "#{key} ''"
|
||||||
if type(attr[0].attribute) == :continuous
|
if type(attr[0].attribute) == :continuous
|
||||||
label_text.gsub!("''", attr[0].threshold)
|
label_text.gsub!("''", attr[0].threshold.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
[parent_text, child_text, label_text]
|
[parent_text, child_text, label_text]
|
||||||
|
|||||||
Reference in New Issue
Block a user